This happens when the server wants to reply but the browser has already closed the connection. Not something you need to worry about if happens erratically. You can reproduce it by hitting browser reload couple of times in a short amount of time.
On 21 Mrz., 06:30, Josh Chung <[email protected]> wrote: > hi, i'm very new to pyramid framework and in the middle of reading its > official documentations. > After i created the first sample project, aka MyProject and tried to connect > to it using Chrome, i met connection exceptions like the following. > > (pyramid)bash-3.2$ paster serve ./development.ini > Starting server in PID 1365. > serving on 0.0.0.0:6543 view athttp://127.0.0.1:6543 > ---------------------------------------- > Exception happened during processing of request from ('127.0.0.1', 54958) > Traceback (most recent call last): > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/httpserver.py", > line 1068, in process_request_in_thread > self.finish_request(request, client_address) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", > line 323, in finish_request > self.RequestHandlerClass(request, client_address, self) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", > line 641, in __init__ > self.finish() > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", > line 694, in finish > self.wfile.flush() > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", > line 303, in flush > self._sock.sendall(view[write_offset:write_offset+buffer_size]) > error: [Errno 32] Broken pipe > ---------------------------------------- > Debug at:http://localhost:6543/_debug/view/1300684486 > > Just after the error occurred, i tried to connect to it again and then > everything worked find w/o any restarting or modifying project source codes. > > Why did that exception happen and how can I prevent it in the real service > environment? > > BTW, I've installed pyramid package into system-wide directory, not into > virtual environment since I want my co-workers can use the same python > environment with me. > > -- > Josh -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
