課程
/計算機基礎
/計算機網絡
/【計算機網絡篇】從0到1 實現HTTP服務器開發
多線程還真是不好調試
2020-01-07
源自:【計算機網絡篇】從0到1 實現HTTP服務器開發 3-4
正在回答
server recv msg: Hello TCPServer
client recv msg: Hello TCPServer
Exception in thread Thread-6:
Traceback (most recent call last):
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
? ? self.run()
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
? ? self._target(*self._args, **self._kwargs)
? File "/Users/kingvstr/tools/vim/learn-python-net/test/test.py", line 36, in client_connect
? ? msg = client.recv(1024)
ConnectionResetError: [Errno 54] Connection reset by peer
Exception in thread Thread-5:
Exception in thread Thread-4:
Exception in thread Thread-2:
舉報
快速&系統 在實踐中掌握計算機網絡編程基礎
2 回答無法連接。
2 回答提示連接錯誤,這個怎么解決?
2 回答ConnectionRefusedError: [WinError 10061] 由于目標計算機積極拒絕,無法連接。
1 回答使用makefile關聯套接字的好處是什么?
1 回答老師,有一個關于報文的問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-01-07
server recv msg: Hello TCPServer
client recv msg: Hello TCPServer
Exception in thread Thread-6:
Traceback (most recent call last):
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
? ? self.run()
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
? ? self._target(*self._args, **self._kwargs)
? File "/Users/kingvstr/tools/vim/learn-python-net/test/test.py", line 36, in client_connect
? ? msg = client.recv(1024)
ConnectionResetError: [Errno 54] Connection reset by peer
Exception in thread Thread-5:
Traceback (most recent call last):
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
? ? self.run()
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
? ? self._target(*self._args, **self._kwargs)
? File "/Users/kingvstr/tools/vim/learn-python-net/test/test.py", line 36, in client_connect
? ? msg = client.recv(1024)
ConnectionResetError: [Errno 54] Connection reset by peer
Exception in thread Thread-4:
Traceback (most recent call last):
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
? ? self.run()
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
? ? self._target(*self._args, **self._kwargs)
? File "/Users/kingvstr/tools/vim/learn-python-net/test/test.py", line 36, in client_connect
? ? msg = client.recv(1024)
ConnectionResetError: [Errno 54] Connection reset by peer
Exception in thread Thread-2:
Traceback (most recent call last):
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
? ? self.run()
? File "/usr/local/Cellar/python/3.7.6/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
? ? self._target(*self._args, **self._kwargs)
? File "/Users/kingvstr/tools/vim/learn-python-net/test/test.py", line 36, in client_connect
? ? msg = client.recv(1024)
ConnectionResetError: [Errno 54] Connection reset by peer