generate empty backtraces for EPIPE and ECONNRESET
commite085bb9600b190692beb5efc85656ebf127ae08c
authorEric Wong <e@yhbt.net>
Tue, 5 Oct 2010 22:45:16 +0000 (5 15:45 -0700)
committerEric Wong <e@yhbt.net>
Tue, 5 Oct 2010 22:53:29 +0000 (5 15:53 -0700)
treee8e54ec583fa85e73a421718d58bf079ec555f60
parentb168cc894037620cab82fa82f3ab37a3aab81570
generate empty backtraces for EPIPE and ECONNRESET

Malicious clients may disconnect during big writes to cause
EPIPE and ECONNRESET exceptions.  Generating backtraces can be
expensive with Ruby, so mitigate the DoS vector by lowering the
cost of generating an exception.
ext/kgio/read_write.c
test/lib_read_write.rb