• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
16 views

Problem :

I am making rest call to IBM Cloud BPM. Some times calls are working fine.But sometimes it is giving following error.
minecraft java.io.ioexception an existing connection was forcibly closed
by (6.9k points)  

1 Answer

0 votes

Soluttion :

Usually the connection to an HTTP server is closed after each response. With HTTP "keep-alive" you keep the underlying TCP connection open until certain criteria are met. What those conditions are depends on the server, which is free to close the connection after an arbitrary timeout or number of requests 

When the server closes such a connection the client usually reopens it again, and depending on implementation, may throw an exception or print a warning.

Further Readings:

https://github.com/DarkPacks/SevTech-Ages/issues/2761

by (21.9k points)  
edited by
...