You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a 1M size file, it takes about many seconds(about 20 seconds) to upload. A larger file is also much longer, so my question is: is it possible to make it a bit faster? Thanks.
BTW: I'm using it under a 100M speed intranet.
The text was updated successfully, but these errors were encountered:
For me, I just add some code like this in droopy's source code(put the below text before the line "import cgi" in the droopy's source code, which is around line 78)
# 2016-08-16 It looks like we find the slow reason
# see here: Slow Python HTTP server on localhost - Stack Overflow - http://stackoverflow.com/questions/2617615/slow-python-http-server-on-localhost
# also see the related page in one answer:
# XMLRPC Server Slow in Python – How to Fix - Answer My Searches - http://www.answermysearches.com/xmlrpc-server-slow-in-python-how-to-fix/2140/
# since we are using BaseHTTPServer, then we can use the fix in the above link
#new code
# import BaseHTTPServer # this is already imported, so just use the imported name httpserver
def not_insane_address_string(self):
host, port = self.client_address[:2]
return '%s (no getfqdn)' % host #used to call: socket.getfqdn(host)
httpserver.BaseHTTPRequestHandler.address_string = \
not_insane_address_string
#end new code
asmwarrior
changed the title
Is it possible to make it a bit faster when upload a file
Droopy is slow due to a DNS lookup bug in python's module BaseHTTPServer
Aug 16, 2016
For a 1M size file, it takes about many seconds(about 20 seconds) to upload. A larger file is also much longer, so my question is: is it possible to make it a bit faster? Thanks.
BTW: I'm using it under a 100M speed intranet.
The text was updated successfully, but these errors were encountered: