Open vikramrajkumar opened 7 years ago
guys, we need to allow issues in https://github.com/bitshares/bitshares-fc and move this one there so we can deal with this and other FC issues separated. someone with enough rights pls allow issues and move.
I originally intentionally disabled issues there to help consolidate issues into one place -- since bitshares-fc is only used for bitshares-core and the same backend developers basically develop and compile them as a whole (EOS in fact merged its fc directly into its core repository), and since historically there were issues that required changes across both fc and core.
ok, cool, thanks for the the clarification. we can keep it this way then i guess .
From @nathanhourt on April 5, 2016 21:48
Reporting here, as cryptonomex/fc does not track issues and I assume no one cares about bytemaster/fc anymore.
Calling
write
on afc::tcp_socket
which has reached EOF on a previousread
may work, or it may hang forever (I find that it will always hang forever if enough bytes are written or write is called multiple times). Writing to a TCP socket when the remote end has shutdown writes is explicitly legal under TCP semantics, so this should either work or throw.Note that it is apparently impossible to handle this gracefully as FC's normal timeout mechanisms fail in this instance as well. I attempted something similar to the following:
This also did not work, as the call to
wait(fc::milliseconds(100))
hangs forever whensocket.write
hangs forever, instead of throwingfc::timeout_exception
as it should. My workaround is simply to throw if an EOF has been read, without trying to write.Copied from original issue: cryptonomex/graphene#646