CodeChain-io / jsonrpc-filter

A proxy server that allows the only subsets of the RPCs
GNU Affero General Public License v3.0
4 stars 6 forks source link

socket hang up from clients #6

Open foriequal0 opened 5 years ago

foriequal0 commented 5 years ago

Multiple clients' sockets hung up simultaneously.

Logs from juggle-ccc, val-val in box2:

...
request to http://127.0.0.1:8700/ failed, reason: socket hang up
request to http://127.0.0.1:8700/ failed, reason: socket hang up
...

jsonrpc-filter hasn't printed any logs and crashed.

We need logging to inspect further. See issue: https://github.com/CodeChain-io/jsonrpc-filter/issues/6

foriequal0 commented 5 years ago

I think upgrading hyper version to 0.12 from 0.11 will mitigate this. Some promising changelogs are there. https://github.com/hyperium/hyper/blob/master/CHANGELOG.md jayson, which is jsonrpc library that codechain-sdk uses, attaches Connection: keep-alive, and there bugfix logs in the hyper after 0.11.27

foriequal0 commented 5 years ago

I thought that we are using 0.11, we are actually using 0.12.27. Only promising changelog since 0.12.27 is about race condition: https://github.com/hyperium/hyper/blob/master/CHANGELOG.md#v01228-2019-04-29