Added close() to async versions of scgi and httpserver.
This commit is contained in:
parent
bad34033de
commit
15dcb9a6a6
2 changed files with 10 additions and 2 deletions
|
|
@ -183,6 +183,10 @@ proc register*(d: PDispatcher, s: PAsyncScgiState): PDelegate {.discardable.} =
|
|||
## Registers ``s`` with dispatcher ``d``.
|
||||
result = d.register(s.asyncServer)
|
||||
|
||||
proc close*(s: PAsyncScgiState) =
|
||||
## Closes the ``PAsyncScgiState``.
|
||||
s.asyncServer.close()
|
||||
|
||||
when false:
|
||||
var counter = 0
|
||||
proc handleRequest(client: TSocket, input: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue