ruby / webrick

HTTP server toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTPS timeout handling

lzap opened this issue · comments

Hey,

I am wondering how webrick's built-in timeout handler works with SSL. When I create an app with :RequestTimeout => 10 it works for HTTP endpoint but not for HTTPS endpoint:

# time telnet localhost 443
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

And the connection is stuck forever in ESTABILISHED TCP state.

Is this expected to work or in case of OpenSSL the reading mechanism is different?

Oh looks like it's only in webrick 1.3.1. Looks like 1.4.2 does work correctly.