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
# Bug report### Bug description:
(base) ➜ ~ python -m http.server 8000
Serving HTTP on :: port 8080 (http://[::]:8080/) ...
----------------------------------------
Exception occurred during processing of request from None
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.12/socketserver.py", line 692, in process_request_thread
self.finish_request(request, client_address)
File "/opt/anaconda3/lib/python3.12/http/server.py", line 1311, in finish_request
self.RequestHandlerClass(request, client_address, self,
File "/opt/anaconda3/lib/python3.12/http/server.py", line 672, in __init__
super().__init__(*args, **kwargs)
File "/opt/anaconda3/lib/python3.12/socketserver.py", line 761, in __init__
self.handle()
File "/opt/anaconda3/lib/python3.12/http/server.py", line 436, in handle
self.handle_one_request()
File "/opt/anaconda3/lib/python3.12/http/server.py", line 404, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/lib/python3.12/socket.py", line 720, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 57] Socket is not connected
----------------------------------------
os: Darwin moonzzMacBook-Pro.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:41:43 PST 2024; root:xnu-11215.61.5~2/RELEASE_X86_64 x86_64
my ip : 192.168.148.212
my vmware ubuntn ip : 192.168.73.182
I user python -m http.server run http server in my mac, run tomcat on port 8080
in mac: use curl 192.168.148.212:8000,got the error, curl localhost:8000 got ok
in ubuntn use curl 192.168.148.212:8000,got the error。
i use wireshark catch it 1.pcap, you can get it from cat 1.txt | base64 -d > 1.pcap
It is the tcp fin packet send by the firewall,the problem disapper after close the firewall.
# see state of firewall
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
# list allow apps
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --listapps
os: Darwin moonzzMacBook-Pro.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:41:43 PST 2024; root:xnu-11215.61.5~2/RELEASE_X86_64 x86_64
my ip : 192.168.148.212
my vmware ubuntn ip : 192.168.73.182
I user
python -m http.serverrun http server in my mac, run tomcat on port 8080in mac: use
curl 192.168.148.212:8000,got the error,curl localhost:8000got okin ubuntn use
curl 192.168.148.212:8000,got the error。i use wireshark catch it
1.pcap, you can get it fromcat 1.txt | base64 -d > 1.pcap1.txt
other versions of my python also hit this, did it is related to python or macos?
CPython versions tested on:
3.12
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: