Improved the performance of the SCGI module when dealing with multiple

concurrent requests.
This commit is contained in:
Dominik Picheta 2013-05-19 18:33:47 +01:00
commit 0b2512e1e4
4 changed files with 110 additions and 33 deletions

View file

@ -629,7 +629,8 @@ proc close*(socket: TSocket) =
discard winlean.closeSocket(socket.fd)
else:
discard posix.close(socket.fd)
# TODO: These values should not be discarded. An EOS should be raised.
# http://stackoverflow.com/questions/12463473/what-happens-if-you-call-close-on-a-bsd-socket-multiple-times
when defined(ssl):
if socket.isSSL:
discard SSLShutdown(socket.sslHandle)