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
This crashes because the ip is an empty string which for some reason panics.
Steps to Reproduce
importsys, signalimporthttp.serverimportsocketserver# Reading portnumber from command lineifsys.argv[1:]:
port=int(sys.argv[1])
else:
port=90# Note ForkingTCPServer does not work on Windows as the os.fork()# function is not available on that OS. Instead we must use the# subprocess server to handle multiple requestsserver=socketserver.ThreadingTCPServer(('',port), http.server.SimpleHTTPRequestHandler )
#Ensures that Ctrl-C cleanly kills all spawned threadsserver.daemon_threads=True#Quicker rebindingserver.allow_reuse_address=Truetry:
whileTrue:
sys.stdout.flush()
server.serve_forever()
exceptKeyboardInterrupt:
passserver.server_close()
Backtrace
No response
Relevant Logs
No response
Your operating system and version
macOS
Local process
Python
Local process version
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered:
Bug Description
This crashes because the ip is an empty string which for some reason panics.
Steps to Reproduce
Backtrace
No response
Relevant Logs
No response
Your operating system and version
macOS
Local process
Python
Local process version
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: