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

test_asyncio, test_imaplib and test_socket fail with FreeBSD TCP blackhole #109015

Closed
vstinner opened this issue Sep 6, 2023 · 1 comment
Closed

Comments

@vstinner
Copy link
Member

vstinner commented Sep 6, 2023

test_asyncio, test_imaplib and test_socket fail with FreeBSD TCP blackhole. When a FreeBSD machine is configured with:

sudo sysctl net.inet.tcp.blackhole=2
sudo sysctl net.inet.udp.blackhole=1

That's the case by default in FreeBSD GCP image:

I'm working on a PR to skip affected tests with such special configuration.

Linked PRs

vstinner added a commit to vstinner/cpython that referenced this issue Sep 6, 2023
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
vstinner added a commit to vstinner/cpython that referenced this issue Sep 6, 2023
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
vstinner added a commit to vstinner/cpython that referenced this issue Sep 6, 2023
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
vstinner added a commit to vstinner/cpython that referenced this issue Sep 6, 2023
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
vstinner added a commit to vstinner/cpython that referenced this issue Sep 6, 2023
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
@emaste
Copy link
Contributor

emaste commented Sep 6, 2023

I seem to have left my comment in the wrong spot -- sysctl provides a -n arg to suppress the name:

$ sysctl -n net.inet.tcp.blackhole
0

vstinner added a commit that referenced this issue Sep 6, 2023
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 6, 2023
…onGH-109016)

Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
(cherry picked from commit a52a350)

Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner added a commit to vstinner/cpython that referenced this issue Sep 7, 2023
…on#109016)

Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).

(cherry picked from commit a52a350)
@vstinner vstinner closed this as completed Sep 7, 2023
vstinner added a commit that referenced this issue Sep 7, 2023
…9016) (#109042)

gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016)

Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).

(cherry picked from commit a52a350)
Yhg1s pushed a commit that referenced this issue Sep 8, 2023
…109016) (#109041)

gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016)

Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
(cherry picked from commit a52a350)

Co-authored-by: Victor Stinner <vstinner@python.org>
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

No branches or pull requests

2 participants