-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Revert "add stream shutdown and support half-duplex operation" #41850
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ab8e9ba
to
4eab352
Compare
This reverts commit 6c4f216.
4eab352
to
78a6cac
Compare
IIRC, someone said on Slack the failure is a bug in the FreeBSD libunwind library, not this PR? |
If I understand correctly, those are two separate issues. The discussion on Slack was about the segfaults during the FreeBSD tests. But separately from the segfaults, there are test failures in the Sockets tests on FreeBSD that are caused by this PR. @ararslan Is that correct? |
As far as I know, that is correct. In the Sockets tests, the pipe is not being closed when the tests are expecting it to, so An alternative to reverting this is to do something like diff --git a/stdlib/Sockets/test/runtests.jl b/stdlib/Sockets/test/runtests.jl
index 328ea929f4..0186677726 100644
--- a/stdlib/Sockets/test/runtests.jl
+++ b/stdlib/Sockets/test/runtests.jl
@@ -521,7 +521,12 @@ end
@test readuntil(P, 'w') == "llo"
Sys.iswindows() && wait(t)
@test eof(P)
- @test !isopen(P) # eof test should have closed this by now
+ # FIXME: eof test should have closed this by now, but it seems not to on FreeBSD
+ if Sys.isfreebsd()
+ @test_broken !isopen(P)
+ else
+ @test !isopen(P)
+ end
close(P) # should be a no-op, just make sure
@test !isopen(P)
@test eof(P) and open an issue for tracking that. I've not yet looked into it, as I've prioritized investigating the segfaults. |
that seems okay too |
Between the revert (this PR) and a |
Closing in favor of #41983 |
Reverts #40783
This broke the tests on FreeBSD 12.