patch for linux version
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
打了这个补丁后,在 linux + py2.6
中虽然还出现如下错误,但似乎不影响运行。
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 45781)
Traceback (most recent call last):
File "/usr/lib/python2.6/SocketServer.py", line 558, in
process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
self.handle()
File "dns.py", line 20, in handle
rspdata = self._getResponse(data)
File "dns.py", line 41, in _getResponse
rspdata = sock.recv(65535)
error: [Errno 11] Resource temporarily unavailable
----------------------------------------
不知道 win 版是否也有此问题?
另外能否简要说明一下原理,或者给个参考资料看看。
还有 sock.recv(65535)
这里面,65535是不是太大了,我简单测试了一下 rspdata
的长度,似乎没有超过 500的。
Original issue reported on code.google.com by tocer.deng@gmail.com
on 28 May 2010 at 4:24
Attachments:
GoogleCodeExporter commented
谢谢,已将patch合并到项目中。rspdata的长度只要大于可能出��
�的包长度都是正确的
Original comment by john...@gmail.com
on 18 Nov 2011 at 8:36
- Changed state: Fixed
GoogleCodeExporter commented
Issue 12 has been merged into this issue.
Original comment by john...@gmail.com
on 18 Nov 2011 at 8:39