Opened 3 years ago

#18540 new defect

uhttpd keep reading file even if client disconnected

Reported by: xuefer Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:


under uhttpd web folder, put a big file which should take some time to finish reading so we have time to test
on server: strace -fp pidof uhttpd
on client: curl http://...../test -o /tmp/a, then ctrl+c

before ctrl+c, strace outputs read/write repeatly
after+c, strace outputs read repeatly which is not expected, it should close fd because the connection is already closed by client

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.