Add a comment about setting socket descriptors to non-blocking mode.
This commit is contained in:
parent
76db43f2eb
commit
7621d34e4d
|
@ -167,8 +167,10 @@
|
|||
(let* ((fd (%socket pf type protocol))
|
||||
(in (make-input-fdport fd 0))
|
||||
(out (dup->outport in)))
|
||||
(set-fdes-status in open/non-blocking)
|
||||
(set-fdes-status out open/non-blocking)
|
||||
(set-fdes-status in open/non-blocking) ; not necessary, because
|
||||
; the next line will
|
||||
; cause it anyway
|
||||
(set-fdes-status out open/non-blocking) ; see c/unix/fd-io.c
|
||||
(make-socket pf in out)))))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue