]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Avoid logging pre-verstring EPIPE from sharing downstreams.
authorSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 11:05:55 +0000 (12:05 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 11:17:35 +0000 (12:17 +0100)
commit5133d2a133671a9236afc710cfe3da80e4c39363
tree9e8b48834a9a16e95544b789b879077db470eda0
parent7c2ea22784912b65e19027a9a9cf499258179742
Avoid logging pre-verstring EPIPE from sharing downstreams.

If you use the new 'plink -shareexists' feature, then on Unix at least
it's possible for the upstream to receive EPIPE, because the
downstream makes a test connection and immediately closes it, so that
upstream fails to write its version string.

This looks a bit ugly in the upstream's Event Log, so I'm making a
special case: an error of 'broken pipe' type, which occurs on a socket
from a connection sharing downstream, before we've received a version
string from that downstream, is treated as an unusual kind of normal
connection termination and not logged as an error.
sshshare.c
unix/unix.h
windows/winstuff.h