error: [Errno 32] Broken pipe

527 views
Skip to first unread message

Marcelo Rodrigues

unread,
Sep 7, 2016, 2:42:19 PM9/7/16
to pydap
Hi Guys,

My PyDAP server is getting down many times by day. I can see in my log the message below. There is a solution?

Exception happened during processing of request from ('172.31.132.57', 44195)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/paste/httpserver.py", line 1085, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.7/SocketServer.py", line 651, in __init__
    self.finish()
  File "/usr/lib64/python2.7/SocketServer.py", line 710, in finish
    self.wfile.close()
  File "/usr/lib64/python2.7/socket.py", line 279, in close
    self.flush()
  File "/usr/lib64/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

James Hiebert

unread,
Sep 7, 2016, 2:56:54 PM9/7/16
to py...@googlegroups.com
Hi Marcelo,

I believe that a broken pipe happens when your server loses connectivity
with the client without one side or the other properly ending the TCP
connection. It might be one side or the other losing an Internet
connection, the client machine powering down during the request, or many
other things.

This *shouldn't* crash the PyDAP server, and the fact that it's getting
logged (as an unhandled exception) indicates that it's not. Could you
clarify that point? If it does actually crash the server, could you
submit that as a GitHub issue?

~James Hiebert
> --
> You received this message because you are subscribed to the Google
> Groups "pydap" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pydap+un...@googlegroups.com
> <mailto:pydap+un...@googlegroups.com>.
> To post to this group, send email to py...@googlegroups.com
> <mailto:py...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/pydap.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages