Fixed hang up thread in json-rpc.
Support for keep-alive http.