Skip to content

Does MsQuic always set's SO_REUSEADDR? #3226

Answered by Beatle95
Beatle95 asked this question in Q&A
Discussion options

You must be logged in to vote

I have found what caused this problem. The thing I have programmed is the DLL. I have discovered, that another DLL from this app is using QProcess class of Qt library version 5.7.1. I have checked sources of Qt and discovered that this class actually starts process with bInheritHandles set to TRUE. When I manually have reset this value to FALSE all issues were gone.

It is obvious that the issue was caused by the following: one of UDP socket handles was inherited by child process and that process didn't let socket handle to be closed, until that process stop.

So there is nothing wrong with MsQuic itself.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Beatle95
Comment options

@Beatle95
Comment options

@Beatle95
Comment options

Comment options

You must be logged in to vote
1 reply
@nibanks
Comment options

Answer selected by Beatle95
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