Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch for linux version #8

Closed
GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments
Closed

patch for linux version #8

GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

打了这个补丁后,在 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
Copy link
Author

谢谢,已将patch合并到项目中。rspdata的长度只要大于可能出��
�的包长度都是正确的

Original comment by john...@gmail.com on 18 Nov 2011 at 8:36

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Issue 12 has been merged into this issue.

Original comment by john...@gmail.com on 18 Nov 2011 at 8:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant