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

@ -420,6 +420,9 @@ proc isListening*(s: PAsyncSocket): bool =
proc isConnecting*(s: PAsyncSocket): bool =
## Determines whether ``s`` is connecting.
return s.info == SockConnecting
proc isClosed*(s: PAsyncSocket): bool =
## Determines whether ``s`` has been closed.
return s.info == SockClosed
proc setHandleWrite*(s: PAsyncSocket,
handleWrite: proc (s: PAsyncSocket) {.closure.}) =