https://bugs.winehq.org/show_bug.cgi?id=56488
--- Comment #1 from bugzilla400@gmail.com --- I found that if a client connects to the server socket instantiated by A, then the socket is not closed but remains, rightly, in TIME_WAIT state.
If the socket is in this state when B starts A, then the problem does not arise.