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
|
|
@ -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.}) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue