GET timeout with the multisocket server
max72
Posts: 1,155
I'm using the spinneret to retrieve informations via GET from a remote server.
I can connect reliably and retrieve informations, but the remote server is quite slow, and it takes some seconds to have the answer back.
I cannot understand if there is a timeout and if it is possible to increase it a little bit in case I'm border line.
Thanks in advance,
Massimo
I can connect reliably and retrieve informations, but the remote server is quite slow, and it takes some seconds to have the answer back.
I cannot understand if there is a timeout and if it is possible to increase it a little bit in case I'm border line.
Thanks in advance,
Massimo
Comments
Thanks again,
Massimo
Spinneret sends a socket request to the remote server.
The remote server responds and the socket status is updated on the Spinneret. Let's assume success.
The Spinneret sends the GET request.
The remote server processes the GET and sends a response.
The logic running in the Spinneret loops, waiting for the response. This is where you put the timeout logic.
If you are using the HttpServer and associated code, there are examples on how to do this. If the existing loop exits too quickly or not quickly enough, then update the loop logic.
Thanks for your time in explaining it to me.
Massimo