mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
@@ -101,6 +101,7 @@ proc next*(s: var TScgistate, timeout: int = -1): bool =
|
||||
## Returns `True` if a new request has been processed.
|
||||
var rsocks = @[s.server]
|
||||
if select(rsocks, timeout) == 1 and rsocks.len == 0:
|
||||
new(s.client)
|
||||
accept(s.server, s.client)
|
||||
var L = 0
|
||||
while true:
|
||||
@@ -143,7 +144,7 @@ proc run*(handleRequest: proc (client: TSocket, input: string,
|
||||
|
||||
# -- AsyncIO start
|
||||
proc handleAccept(sock: PAsyncSocket, s: PAsyncScgiState) =
|
||||
|
||||
new(s.client)
|
||||
accept(getSocket(s.asyncServer), s.client)
|
||||
var L = 0
|
||||
while true:
|
||||
|
||||
Reference in New Issue
Block a user