Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

BrokenPipeError #267

Open
pablasso opened this issue Dec 6, 2016 · 3 comments
Open

BrokenPipeError #267

pablasso opened this issue Dec 6, 2016 · 3 comments

Comments

@pablasso
Copy link

pablasso commented Dec 6, 2016

We occasionally have this error, where the client is trying to read or write and the socket is already closed:

[Errno 32] Broken pipe
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/thriftpy/server.py", line 95, in handle
    self.processor.process(iprot, oprot)
  File "/usr/local/lib/python3.5/site-packages/thriftpy/thrift.py", line 307, in process
    self.send_result(oprot, api, result, seqid)
  File "/usr/local/lib/python3.5/site-packages/thriftpy/thrift.py", line 279, in send_result
    oprot.write_message_end()
  File "thriftpy/protocol/cybin/cybin.pyx", line 463, in cybin.TCyBinaryProtocol.write_message_end (thriftpy/protocol/cybin/cybin.c:6845)
  File "thriftpy/transport/framed/cyframed.pyx", line 95, in thriftpy.transport.framed.cyframed.TCyFramedTransport.c_flush (thriftpy/transport/framed/cyframed.c:2053)
  File "/usr/local/lib/python3.5/site-packages/thriftpy/transport/socket.py", line 129, in write
    self.sock.sendall(buff)
BrokenPipeError: [Errno 32] Broken pipe

It seems to be very intermittent and the network is fine, I'm not sure if this is a problem with thriftpy, any ideas on how to tackle this?

@btdlin
Copy link

btdlin commented Jan 3, 2017

We are seeing the same issue too, and would like to know how to get this resolved. Thanks!
......
File "/usr/local/lib/python3.4/dist-packages/thriftpy/thrift.py", line 195, in _req
self._send(_api, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/thriftpy/thrift.py", line 206, in _send
self._oprot.write_message_end()
File "thriftpy/protocol/cybin/cybin.pyx", line 463, in cybin.TCyBinaryProtocol.write_message_end (thriftpy/protocol/cybin/cybin.c:6845)
File "thriftpy/transport/framed/cyframed.pyx", line 95, in thriftpy.transport.framed.cyframed.TCyFramedTransport.c_flush (thriftpy/transport/framed/cyframed.c:2053)
File "/usr/local/lib/python3.4/dist-packages/thriftpy/transport/socket.py", line 129, in write
self.sock.sendall(buff)
BrokenPipeError: [Errno 32] Broken pipe

@naoko
Copy link

naoko commented Mar 6, 2017

I too experiencing this intermittently.

  File "thriftpy/protocol/cybin/cybin.pyx", line 463, in cybin.TCyBinaryProtocol.write_message_end (thriftpy/protocol/cybin/cybin.c:6832)
  File "thriftpy/transport/buffered/cybuffered.pyx", line 80, in thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.c_flush (thriftpy/transport/buffered/cybuffered.c:2138)
  File "/srv/transporter/venv/lib/python3.5/site-packages/thriftpy/transport/socket.py", line 129, in write
    self.sock.sendall(buff)

@pranny
Copy link

pranny commented Jul 3, 2017

Me too. Same issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants