Alain Schneble writes: > I'll send a patch for further discussions shortly. And here it is. The fix is quite simple. It ensures that sys_write exits before touching the socket if it is not connected yet. Unfortunately I didn't find any documentation on winsock ioctlsocket that would prove that this is indeed required. But it seems not wrong to me anyway. (I'll try to search the wisock documentation tomorrow to find some hints that lead in this direction, or maybe you know?)