http://bugs.winehq.org/show_bug.cgi?id=8955
Summary: winmm, 950+ socket cycles crashes application Product: Wine Version: 0.9.41. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-net AssignedTo: wine-bugs@winehq.org ReportedBy: daraknor@gmail.com
I create sockets to a winsock2 DLL send/receive data and then close the socket. On Windows there is no limit to the number of times I can do this. On linux, the limit appears to be 970-980. All further attempts to connect simply time out. The application is also hung.
I have not tested this issue outside of my target application (MetaTrader 4 by metaquotes.net) and it could be related to their thread/memory management. The DLL calls ws2_32 and winmm. I attempted to compile the DLL against WINE source but didn't succeed with the compile on windows.
Issue originally experienced on 0.9.39, confirmed the same behavior on 0.9.41. Error code: wine client error:0: init_thread failed with status c000011f 0xc000011f is STATUS_TOO_MANY_OPENED_FILES