Programmers learn & share
0 votes

Problem :

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

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:

by (36.1k points)  
edited by
2,187 questions
2,514 answers
241 users