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

BBIOServer slow #19

Closed
Ldsrc2008 opened this issue May 8, 2013 · 1 comment
Closed

BBIOServer slow #19

Ldsrc2008 opened this issue May 8, 2013 · 1 comment

Comments

@Ldsrc2008
Copy link

Hi, Alex,

I have tried BBIO server(set at port 8000) with several wifi router, it response very slow,takes about a min. but when I try to access cloud9 at port 3000, it response pretty quick.
what can I do with this?

@Ldsrc2008
Copy link
Author

Hi, I guess I got the answer, the problem is not PyBBIO, it's the simpleHTTP...
http://stackoverflow.com/questions/2617615/slow-python-http-server-on-localhost
I went to /usr/lib/python2.7/BasedHTTPServer.py
and find def address_string(self):
remark the return socket.getfqdn(host)

def address_string(self):
host, port = self.client_address[:2]
#return socket.getfqdn(host)

it solved the problem.

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

No branches or pull requests

1 participant