在 2008-9-7,下午11:33, Hans Hübner 写道:
On Sun, Sep 7, 2008 at 17:09, Chun Tian (binghe) <[EMAIL PROTECTED] > 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 thisissue 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.htmI made a patch based on above idea, as in attach, it works under simple test.
Regards, Chun Tian (binghe)
usocket-wfl-lispworks.diff
Description: Binary data
_______________________________________________ usocket-devel mailing list usocket-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/usocket-devel