diff options
author | Elliott Hughes <enh@google.com> | 2021-04-22 18:54:41 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-04-24 04:50:25 -0500 |
commit | dbd7a975ec64dc52af704970109f8c637600b088 (patch) | |
tree | b6753f7a1ee517241287cfa4e3d484cb7c57c74c /toys/posix/sleep.c | |
parent | 35c484489b06134fb1ac56801c621020b935b2a7 (diff) | |
download | toybox-dbd7a975ec64dc52af704970109f8c637600b088.tar.gz |
telnetd: handle TIME_WAIT better.
After a network outage, a long-running telnetd was spinning trying to
read from a socket that was in TIME_WAIT. It's easy to reproduce this by
using the regular telnet client and typing ^]^D to exit abruptly.
I don't think these sockets should ever have been non-blocking, and we
want to give up on the client if we hit EOF. All of this needs
rewriting to be less complicated (and not use select(2)), but this seems
to be a minimal fix for the spin without harming normal usage (where by
"usage" I mean "testing the telnet client").
Diffstat (limited to 'toys/posix/sleep.c')
0 files changed, 0 insertions, 0 deletions