Skip to content

Possible for BlackSheep to use SO_REUSEPORT? #234

Answered by RobertoPrevato
bitnom asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @bitnom
When I first implemented BlackSheep, it included an implementation of HTTP Server and it was handling this kind of details like port reuse (I was indeed using port reuse by default).
But since I implemented support for ASGI HTTP Server in version 0.1.2 and I removed the implementation of the HTTP Server, the framework is not concerned anymore with handling of these details. The question about port reuse is not applicable to BlackSheep at the moment: it depends on the ASGI server that you use to run the application.

It seems that Uvicorn reuses ports by default, but I cannot find SO_REUSEPORT in its code base.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RobertoPrevato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants