backport r28557 to 1.9.2
Clients can exploit this bug to DoS servers that use IO.copy_stream.
I thought I created a ticket for this back when it was fixed in trunk...
Updated by yugui (Yuki Sonoda) about 9 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r31845.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- io.c (nogvl_copy_stream_sendfile): jump to retry_sendfile directly to avoid select() on a socket which TCP state is CLOSED. patch by Eric Wong. [ruby-core:31053]