[usocket-devel] [bug] WAIT-FOR-INPUT cannot be called without :TIMEOUT
Chun Tian (binghe)
binghe.lisp at gmail.com
Sun Sep 7 15:46:55 UTC 2008
在 2008-9-7,下午11:33, Hans Hübner 写道:
> On Sun, Sep 7, 2008 at 17:09, Chun Tian (binghe) <binghe.lisp at gmail.com
> > wrote:
>
>> So if I call WAIT-FOR-INPUT on a usocket instance with no TIMEOUT
>> keyword
>> supply, (TRUNCATE NIL) will be called, and error happens. How to
>> fix this
>> issue to make sure I can just wait "infinitely" on a usocket?
>
> Not having tried it, but (and timeout (truncate timeout)) should do,
> no?
I don't think so.
MP:PROCESS-WAIT-WITH-TIMEOUT must be called with a TIMEOUT parameter
as integer (in seconds). If TIMEOUT is NIL, WAIT-FOR-INPUT-INTERNAL
maybe should turn to call MP:PROCESS-WAIT instead of MP:PROCESS-WAIT-
WITH-TIMEOUT:
http://www.lispworks.com/documentation/lw51/LWRM/html/lwref-445.htm
I made a patch based on above idea, as in attach, it works under
simple test.
Regards,
Chun Tian (binghe)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usocket-wfl-lispworks.diff
Type: application/octet-stream
Size: 1535 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/usocket-devel/attachments/20080907/fffa6558/attachment.obj>
-------------- next part --------------
More information about the usocket-devel
mailing list