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

OSError: [Errno 98] Address already in use on second test session run #1104

Open
krims0n32 opened this issue Jan 9, 2024 · 0 comments
Open

Comments

@krims0n32
Copy link

I use the liveserver fixture with a fixed port because I need SSL and have nginx setup in front of it. The first test runs fine, but when running another pytest session before TIME_WAIT expires I get the address already in use error. I suspect either cleanup is not done properly when the liveserver quits or it's just a TCP/IP thing.

Is there a workaround for this? I really need the fixed port because otherwise proxying from nginx won't work.

Thanks!

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

1 participant