Improved the performance of the SCGI module when dealing with multiple
concurrent requests.
This commit is contained in:
parent
7b36d3d6ff
commit
0b2512e1e4
4 changed files with 110 additions and 33 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue