[Toybox] PATCH telnetd

김혜진 hj8296 at gmail.com
Tue Mar 17 03:31:12 PDT 2015


Hi. All

I found an issue of telnetd that it loops infinitely when client
disconnected abnormally on working.
like client is killed by outside.

On embedded system, this issue make that cpu occupation goes high.

In this case :
select() returns 1, means socket fd has something changes.
but, read()/write() after select() gets an error because client already
disconnected.

attached patch help prevent this issue.
plz, check.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150317/1ee632f2/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-telnetd-handling-read-write-fail-when-client-disconn.patch
Type: application/octet-stream
Size: 3940 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150317/1ee632f2/attachment-0004.obj>


More information about the Toybox mailing list