Stas Degteff
2012-03-10 10:50:42 UTC
Hello Nick.
09 Mar 12 16:59, you wrote to me:
SD>> Workaround may be only one: after receiving invalid M_GET receiver
SD>> should reply M_ERR with diagnostic message and close socket. See
SD>> binkp specificati
NA> I'm not asking about the specification. I'm asking that if the remote
NA> side is attempting to GET-seek to a position which does not exist...
NA> can't BinkP just tell the other system that it has seeked to that
NA> position meanwhile it is starting at the beginning-of-file?
Binkp-mailer can tell the remote only "OK" or "ERROR", not more.
GET with offset behind EOF can be result of fault/inconsistency of file system.
I see only one action: tell remote sysop about error
After receiving invalid M_GET, before 1.0a-608 binkd simple touch requested
file and drop the session. In next session this file should be tranmitted
normally.
In binkd 1.0a-608 Paul Gulchuck implemented check of M_GET parameters and now
binkd send M_ERR to remote and also touch file. Sysop of remote node should
notice the error message in the log/screen
NA> Lets look at it this way. If I crash the remote system running
NA> Internet Rex because I'm screwing around with the GET code, then I'm
NA> very happy because I've alerted that Sysop to a problem.
This illegal method of solving problem, sorry.
Stas
Jabber-ID: ***@grumbler.org
GPG key 0x72186DB9 (keyserver: hkp://wwwkeys.eu.pgp.net)
... Golded+, Husky & RNTrack maintainer, Binkd developer&webmaster
09 Mar 12 16:59, you wrote to me:
SD>> Workaround may be only one: after receiving invalid M_GET receiver
SD>> should reply M_ERR with diagnostic message and close socket. See
SD>> binkp specificati
NA> I'm not asking about the specification. I'm asking that if the remote
NA> side is attempting to GET-seek to a position which does not exist...
NA> can't BinkP just tell the other system that it has seeked to that
NA> position meanwhile it is starting at the beginning-of-file?
Binkp-mailer can tell the remote only "OK" or "ERROR", not more.
GET with offset behind EOF can be result of fault/inconsistency of file system.
I see only one action: tell remote sysop about error
After receiving invalid M_GET, before 1.0a-608 binkd simple touch requested
file and drop the session. In next session this file should be tranmitted
normally.
In binkd 1.0a-608 Paul Gulchuck implemented check of M_GET parameters and now
binkd send M_ERR to remote and also touch file. Sysop of remote node should
notice the error message in the log/screen
NA> Lets look at it this way. If I crash the remote system running
NA> Internet Rex because I'm screwing around with the GET code, then I'm
NA> very happy because I've alerted that Sysop to a problem.
This illegal method of solving problem, sorry.
Stas
Jabber-ID: ***@grumbler.org
GPG key 0x72186DB9 (keyserver: hkp://wwwkeys.eu.pgp.net)
... Golded+, Husky & RNTrack maintainer, Binkd developer&webmaster