diff options
author | Jeremy Evans <code@jeremyevans.net> | 2017-03-24 13:03:46 -0700 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-03-24 21:06:59 +0000 |
commit | 9cced5d3ace9fc333c95b63f443225887f774a47 (patch) | |
tree | 0bcc7b9f8ac03cfe70c2fbe9b9158185a1a6df15 /Sandbox | |
parent | d60cab29c91aec17859539f389e343f799b6f1b9 (diff) | |
download | unicorn-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 'Sandbox')
0 files changed, 0 insertions, 0 deletions