end else begin\r
state :=wsconnecting;\r
{$ifdef mswindows}\r
+ //beware: atleast on windows, wsaasyncselect set interest in events before connecting, or a connect error isn't seen if it happens immediately during connect\r
+ eventcore.rmasterset(fdhandlein,false);\r
+ eventcore.wmasterset(fdhandleout);\r
//writeln(inaddr.inaddr.port);\r
winsock.Connect(fdhandlein,winsock.psockaddr(@inADDR)^,getaddrsize);\r
{$else}\r
system_Connect(fdhandlein,inADDR,getaddrsize);\r
+ eventcore.rmasterset(fdhandlein,false);\r
+ eventcore.wmasterset(fdhandleout);\r
{$endif}\r
- eventcore.rmasterset(fdhandlein,false);\r
- eventcore.wmasterset(fdhandleout);\r
if trymoreips then connecttimeout.enabled := true;\r
end;\r
//sendq := '';\r