-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
HTTP client connection pool timeouts causing EndOfStream #21316
Comments
Check on this: git: fatal: Could not read from remote repository It may actually be an ssh issue and not a zig fetch issue. At least it solved the issue for me |
@zadockmaloba I reproduced your issue here (only on Mac for some reason). I then realised the difference between zstd and the other dependencies: OK:
Not OK:
Notice the extra Removing the |
@zadockmaloba regarding
Zig's git+http(s) fetch support does not use SSH or even the @agagniere Zig supports fetching both The reason it may seem like certain solutions are working is because this issue is very sporadic and can't be reproduced 100% consistently: even with the GitHub Actions run linked in the issue description, the next attempt of the same run succeeded: https://github.com/allyourcodebase/boost-libraries-zig/actions/runs/10722077115 I tried to investigate this a bit further: I hacked together an ugly patch to get I'm not at all knowledgeable when it comes to low-level networking stuff, though, so unfortunately this is as far as my investigation has gotten so far. |
I'm not sure how I didn't notice this when I was debugging last night, but the server closing the connection is occurring 30 seconds after the last activity on the connection, so this seems to be a case of the server enforcing an idle timeout on the connection and closing it: But the connection remains in the pool, and is reused for the next request despite being closed. So, in other words, there needs to be some sort of check when acquiring a connection from the pool to make sure that it's still valid to use (and/or enforce an idle timeout within the pool to proactively evict connections which are likely to be unusable). |
If it helps anyone, currently I can reproduce this every time:
Distributor ID: Ubuntu (x86_64) |
@arafel that is most likely unrelated to the original issue here ( |
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
How to Reproduce?
Note
Basically, these are 115 packages that list all the includePaths. However, sources are optionally linked.
Output: https://github.com/allyourcodebase/boost-libraries-zig/actions/runs/10722077115/job/29732148313
Reference
invalid HTTP response: EndOfStream
when fetching normal + lazy dependencies on amacos-14
GitHub Actions runner #20313Expected Behavior
No issue.
The text was updated successfully, but these errors were encountered: