-
Notifications
You must be signed in to change notification settings - Fork 324
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
http1.1 chunked encoding #548
Comments
Chunked encoding would be a new feature and those are no longer accepted in the form of issues. |
This issue is not a feature request for supporting chunked encoding. I have encountered exactly the same issue: The server responds with a chunked response. It is allowed to do so because ddclient's request states HTTP/1.1 as the protocol version. For my setup, the same configuration works fine with 3.9.1 but it errors in 3.10.0. Compare the HTTP logs: v3.10.0
3.9.1
As the OP states, #333 updated the HTTP request to use protocol version HTTP/1.1. The same error can be seen in many other issues but apparently it hasn't been properly identified yet: #483, #338, #347, #503, #525, #414, #354, #513, #499 #503 even received a bug fix in #506. It covers exactly this problem, only in a very special case for As some issues (like #513) a workaround is to use #542 seems to fix this issue (I haven't verified it myself yet). |
The maintainers should just ditch the hand crafted http code and either replace it with a library or always use curl. |
We've already opted to require curl as the latest prerelease (v3.11.0_1, refer to the changelog ). |
@straight-shoota I expect this to work since curl is now always used - but it never hurts to confirm. Can you verify that v3.11.0_1 no longer has the issue? |
Yes, I can confirm this issue does not reproduce with v3.11.0_1 🎉 |
ddclient v3.10.0 is broken, failing to parse server response because chunked transfer-encoding.
PR #333 9a44eeb changed from
HTTP/1.0
toHTTP/1.1
in geturl fetch_via_socket_io.Chunked transfer encoding is required for HTTP/1.1.
To get it working need revert request to HTTP/1.0 or add support chunked encoding for HTTP/1.1.
The text was updated successfully, but these errors were encountered: