在树莓派服务器上处理HTTP请求时出错

时间:2019-04-10 11:16:37

标签: http arduino raspberry-pi webserver

我已经在我的局域网上运行了一个树莓网络服务器,其他人正在与arduino连接,有时他们连接时出现此错误:

Exception happened during processing of request from ('172.17.17.66', 49153) 
Traceback (most recent call last): 
 File "/usr/lib/pythonz.7/SocketServer.py", line 290, in 
_hand1e_request_nobloc k self.process_request(request, client_address) File 
"/usr/lib/pythonz.7/SocketServer.py“, line 318, in process_request 
self.finish_request(request, client_address) File 
"/usr/lib/pythonz.7/SocketServer.py“, line 331, in finish_request 
self.RequestHandlerClass(request, client_address, self) File 
"/usr/lib/pythonz.7/SocketServer.py", line 652, in __init__ self.hand1e() 

File "/usr/lib/pythonz.7/BaseHTTPServer.py“, line 340, in handle 
self.handle_one_request() File "/usr/lib/pythonz.7/BaseHTTPServer.py", line 
310, in handle_one request self . raw_requestline = self . rfile . 
readline(65537) ‘ File "/usr/lib/pythonz.7/socket.py", line 480, in readline 
data = self._sock.recv(se1f._rbufsize) error: [Errno 104] Connection reset 
by peer 

有人可以告诉我什么意思吗?我的服务器或其插座有问题吗?如果需要,我可以发布我的代码。

1 个答案:

答案 0 :(得分:3)

最后一行:

error: [Errno 104] Connection reset by peer 

表示客户端断开了连接。我先看一下Arduino代码。