citadel-tech / coinswap

Functioning, minimal-viable binaries and libraries to perform a trustless, p2p Maxwell-Belcher Coinswap Protocol
https://gist.github.com/chris-belcher/9144bd57a91c194e332fb5ca371d0964
Other
73 stars 46 forks source link

Add loop in bufreader in rpc server #286

Closed claddyy closed 3 weeks ago

claddyy commented 3 weeks ago

Adding a loop at the point where we're reading the buffer while making rpc requests.

Issue: Getting failed to fill whole buffer while making a POST request. For linux we won't face this, but for mac, we do, as the file descriptors don't get immediately filled and usually, a time lag is observed for macos.