Replies: 3 comments 1 reply
-
I think this is expected behavior and I'm just seeking to understand the reason behind it. Additionally, I'm interested in knowing if there's a way to install Viosocklib.dl without immediate effect, such as only taking effect after a Windows restart. |
Beta Was this translation helpful? Give feedback.
-
Hello, what are you trying to accomplish with the step 3)? I do not think WinSock is ready for that. During its second registration, viosocklib.dll can get a different Similarly, if you do not re-register the provider, the second socket creation attempt fails as well but with different error ( Martin |
Beta Was this translation helpful? Give feedback.
-
I do not think there is a documented way of doing that. You can try to do the registration yourself by directly writing necessary entries into the registry. I am not sure whether WinSock2 checks the registry whenever asked about providers though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Steps to reproduce
Reproduce this problem through a simple code. The code flow is as follows
Test Results
Step 4: Creating a new socket will fail with error code 10022
Issue Analysis
code stack
socket(family, SOCK_STREAM, 0)--->VIOSockSocket--->g_UpcallTable.lpWPUModifyIFSHandle
g_UpcallTable.lpWPUModifyIFSHandle failed: 10022
solve
Add the following code after the step 3, the second socket will be created successfully.
client.zip
Beta Was this translation helpful? Give feedback.
All reactions