0
I 후속 코드가 있습니다많은 HTTP 요청이 병의 서버 장애를 일으킬
@route('/my_page')
def my_page():
conn = sqlite.connect('test.db')
c = conn.cursor()
c.execute("select * from table")
res = c.fetchall()
c.close()
out = template('my_page',rows=res)
return out
및 오토 리프레시와 템플릿 my_page.tpl :
<meta http-equiv="refresh" content="10">
내가 열을 내 브라우저에서 http://my_server:8080/my_page 및 새로 고침을 한 후 내 앱에 다음 오류가 발생했습니다.
File "c:\python27\lib\wsgiref\simple_server.py", line 116, in handle
self.raw_requestline = self.rfile.readline()
File "c:\python27\lib\socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 10054] An existing connection was forcibly closed by the remote host
다시 작동하려면 응용 프로그램을 다시 시작해야합니다. 나는 또한 netstat -ano을 확인했으며 많은 것을 볼 수있다. TIME_WAIT TCP 연결. 문제의 원인은 무엇입니까?