-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete responses lead to failure-loop #59
Comments
Since a few retries mechanisms are implemented on top of those functions, I'm guessing that it's not that useful to have it within the function (or we should completely do it within the function, and not on top of it at all ?) So my plan is to remove the retry when some data could be read (maybe even in all cases, I'm not sure ?), AND to return an errno code (probably EIO). What do you think about it ? |
Discussed with vianney, should be ok with #60 as an addition. |
Now reads of the response is done in temp buffer to avoid mixing request and response
- Change the way to manage disconnects while sending a request or receiving a response. - Now Only retry once in case of disconnect The only unadressed part of #59 was the return status of the operation. For simplicity, either the response could be fully retrieved, and we return the length of the reponse; or it couldn't and we return the last error code (whichever it is). Thus we will consider that this patch completes the fix to issue #59.
Cannot reproduce it anymore with the playground server, I personally consider this as fixed; although it might be better to test a bit more.
|
With the fix for #54 , a new bug was introduced:
When the reponse cannot be read in its entirety (whatever the reason, but the bug was shown thanks to an error in the DELETE op of the playground server), the sock_send_receive function tries to re-send the request, which was partially overwritten while reading the response.
This means that either:
Also:
The text was updated successfully, but these errors were encountered: