diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2019-10-17 14:29:25 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2019-10-17 14:29:25 +0000 |
commit | 0604a23779830343a0cd63f5582f0faf642b4e12 (patch) | |
tree | 1d4f89a154f54872935916ea6bb031fb8f20e7b9 /bin/ed | |
parent | bb18f2f4af3782ba481ee7ce6414146c1ea6df50 (diff) |
Fix -N flag to actually shut down the (entire) socket when the input
goes away. This allows for using nc in cases where the network server
will no longer expect anything after eof, instead of hanging waiting
for more input from our end.
Additionaly, shut down if tls is in use if either side of the socket
goes away, since we higher level TLS operations (tls_read and write)
will require the socket to be both readable and writable as we can
get TLS_WANT_POLLIN or TLS_WANT_POLLOUT on either operation.
deraadt@ buying it. found by sthen@
Diffstat (limited to 'bin/ed')
0 files changed, 0 insertions, 0 deletions