On Wed, Apr 24, 2013 at 8:46 PM, Craig Hockenberry
<
craig.ho...@gmail.com> wrote:
> I'd like to change the socket timeout for an HTTPS server instance, but find
> that the following doesn't work:
>
> var options = {
> key: fs.readFileSync('ssl/my.key'),
> cert: fs.readFileSync('ssl/my.crt'),
> ca: fs.readFileSync('ssl/myca.crt'),
> handshakeTimeout: 20000,
> };
> var server = https.createServer(options, requestListener);
> server.setTimeout(30000);
> server.listen(8080);
>
> In our development environment, where we use an HTTP server, the timeout
> works great.
>
> I'm wondering if there is some technical reason why SSL connections can't
> time out, or if this is just an oversight.
>
> Thanks in advance for any help/insight.
>
> -ch
It's an oversight. I've filed an issue[1].
[1]
https://github.com/joyent/node/issues/5361