[usocket-devel] [bug] WAIT-FOR-INPUT cannot be called without :TIMEOUT

Chun Tian (binghe) binghe.lisp at gmail.com
Thu Oct 2 16:15:49 UTC 2008


Hi, usocket

Anyone review this patch? Should it be applied? (If sure, I'll commit  
it by myself)

--binghe

在 2008-9-7,23:46, Chun Tian (binghe) 写道:

>
> 在 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)
>
> <usocket-wfl-lispworks.diff>




More information about the usocket-devel mailing list