Branch: Tag:

2014-05-14

2014-05-14 17:35:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.sslfile: Reducing linger time to zero wasn't a good idea...

Setting linger time to zero can cause data pending in the network
buffers not to be sent, and thus cause data loss at end of stream.

Fixes [bug 7126].

786:    RETURN (stream);    default:    SSL3_DEBUG_MSG ("SSL.sslfile->shutdown(): Nonclean close - closing stream\n"); -  if (stream->linger) stream->linger(0); +  // if (stream->linger) stream->linger(0);    stream->close();    local_errno = stream->errno();    RETURN (0);