briandilley / jsonrpc4j

JSON-RPC for Java
MIT License
1.05k stars 438 forks source link

JsonRpcHttpClient (HTTPs) and keep-alive support #281

Open arkwaw opened 2 years ago

arkwaw commented 2 years ago

JsonRpcHttpClient was keeping connection alive as expected, but after migrating my code to HTTPs its not working anymore.

The only change between http and https version are those two lines:

rpcClient.setSslContext(ssl); rpcClient.setHostNameVerifier(allValid);

SSL request is received and decoded by the server, so the only issue is that connection is closed each time.

Did I miss something?