A
Aaron Staley
Scenario. I have a fifo named 'fifo' on my computer (ubuntu linux)
operating in nonblocking mode for both read and write. Under normal
operation all is good:
Interpreter 1 (writer)
Interpreter 2 (reader):'k'
However, if interpreter 1 overfills the FIFO, we get an error (EAGAIN)IOError: [Errno 11] Resource temporarily unavailable
However interpreter 2 still receives data65536
It looks like interpreter 1 pushed data until the FIFO was full and
then raised the IOError. Interpreter 2 constantly received some, but
not all, of what interpreter 2 tried to send.
Unfortunately, the IOError seems to have no attribute indicating how
much data was successfully sent. I've looked through the docs and
can't seem to figure out how; can anyone land some advice?
Thanks,
Aaron Staley
operating in nonblocking mode for both read and write. Under normal
operation all is good:
Interpreter 1 (writer)
Interpreter 2 (reader):'k'
However, if interpreter 1 overfills the FIFO, we get an error (EAGAIN)IOError: [Errno 11] Resource temporarily unavailable
However interpreter 2 still receives data65536
It looks like interpreter 1 pushed data until the FIFO was full and
then raised the IOError. Interpreter 2 constantly received some, but
not all, of what interpreter 2 tried to send.
Unfortunately, the IOError seems to have no attribute indicating how
much data was successfully sent. I've looked through the docs and
can't seem to figure out how; can anyone land some advice?
Thanks,
Aaron Staley