Skip to content
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

fix(sampledconn): Correctly handle slow bytes and closed conns #3080

Merged
merged 11 commits into from
Dec 10, 2024

Conversation

MarcoPolo
Copy link
Collaborator

No description provided.

@MarcoPolo
Copy link
Collaborator Author

Currently investigating why linux fails here.

Not worth fiddling with the OS api right now
@MarcoPolo
Copy link
Collaborator Author

I've removed the OS specific things. The wrapper approach works fine and avoids a lot of complexity.

@MarcoPolo MarcoPolo requested a review from sukunrt December 6, 2024 20:57
@@ -63,7 +64,7 @@ func TestSampledConn(t *testing.T) {
assert.Equal(t, "hello", string(buf))
} else {
// Wrap the client connection in SampledConn
sample, sampledConn, err := newFallbackSampledConn(clientConn.(ManetTCPConnInterface))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we rename fallbackPeekingConn to sampledConn?

lidel added a commit to ipfs/kubo that referenced this pull request Dec 10, 2024
@sukunrt sukunrt merged commit 4e85c96 into master Dec 10, 2024
11 checks passed
@lidel lidel mentioned this pull request Dec 10, 2024
58 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants