about summary refs log tree commit homepage
path: root/test/exec/test_exec.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2017-03-24 13:03:46 -0700
committerEric Wong <e@80x24.org>2017-03-24 21:06:59 +0000
commit9cced5d3ace9fc333c95b63f443225887f774a47 (patch)
tree0bcc7b9f8ac03cfe70c2fbe9b9158185a1a6df15 /test/exec/test_exec.rb
parentd60cab29c91aec17859539f389e343f799b6f1b9 (diff)
downloadunicorn-9cced5d3ace9fc333c95b63f443225887f774a47.tar.gz
On OpenBSD, getsockopt(2) does not support TCP_INFO.  With the current code,
this results in a 500 for all clients if check_client_connection is enabled
on OpenBSD.

This patch rescues SocketError on the first getsockopt call, and
if SocketError is raised, it doesn't check in the future.  This
should be the same behavior as if TCP_INFO was supported but
inspect did not return a string in the expected format.
Diffstat (limited to 'test/exec/test_exec.rb')
0 files changed, 0 insertions, 0 deletions