Message164225
i use socket such as :
self.socket.setblocking(1)
self.socket.settimeout(1)
but this socket is no-block ,i find socketmodule.c sock_settimeout
s->sock_timeout = timeout;
internal_setblocking(s, timeout < 0.0);
if timeout >0, so internal_setblocking(s,false=0),so socket is no-block
by the way:
in sock_settimeout,call internal_setblocking params have error?
init_sockobject:
if (defaulttimeout >= 0.0)
internal_setblocking(s, 0); |
|
Date |
User |
Action |
Args |
2012-06-28 07:26:19 | Frank.Ling | set | recipients:
+ Frank.Ling |
2012-06-28 07:26:19 | Frank.Ling | set | messageid: <1340868379.68.0.473827205648.issue15215@psf.upfronthosting.co.za> |
2012-06-28 07:26:18 | Frank.Ling | link | issue15215 messages |
2012-06-28 07:26:18 | Frank.Ling | create | |
|