mIRC Home    About    Download    Register    News    Help

Print Thread
#27759 02/06/03 11:11 PM
Joined: Jun 2003
Posts: 2
Z
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jun 2003
Posts: 2
The mIRC client seems to disconnect any send which is over 47 sends, hence 48- sends gets disconnected instantly after it is connected.

#27760 02/06/03 11:26 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Here (98se) it failed on the 16th send, reporting "Socket failed". But I suspect it's not an mirc error, because I couldn't use the internet (surf etc) until I closed some dcc windows. Perhaps a winsock/memory limitation?

#27761 02/06/03 11:41 PM
Joined: Jun 2003
Posts: 2
Z
Bowl of petunias
OP Offline
Bowl of petunias
Z
Joined: Jun 2003
Posts: 2
it's not reporting socket failure, it just connects to the other client for a moment, and then disconnect.

#27762 03/06/03 12:15 AM
Joined: Dec 2002
Posts: 5,427
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,427
There are no internal limits on the number of sends that you can initiate. Any limitation depends entirely on available Windows resources.

#27763 03/06/03 12:30 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Khaled, do you happen to use WSAEventSelect or select() for socket polling? Because if you do, Windows has a limit of 64 sockets. If you use select() you can just up FD_SETSIZE at compile time, if you use WSAEventSelect, from everything I can find, there is nothing you can do to increase the limit. That kind of sounds like what the problem is here. Because socket() and open() will complete successfully it in theory would start the send and then almost immediately drop it. This is because the non-blocking socket will never trigger in select() because the fd_set isn't large enough. And in fact (as I'm sure you already know) trying to put it in the fd_set can cause memory access errors since you are going passed array bounds. Just an idea, I might be totally wrong...


Link Copied to Clipboard