[issue15215] socket module setblocking and settimeout problem

2012-06-28 Thread Frank Ling
Frank Ling added the comment: how to create socket and have block timeout mode? self.socket.setblocking(1) self.socket.settimeout(1) this program is error? -- ___ Python tracker <http://bugs.python.org/issue15

[issue15215] socket module setblocking and settimeout problem

2012-06-28 Thread Frank Ling
New submission from Frank Ling : 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