mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 61
A
Aeron Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2003
Posts: 61
When mIRC recieves a UDP packet with length 0 it closes the socket and doesn't trigger a UDPread even with '-k'.

I got no methods to reproduce it.

mIRC 6.16
WinXP SP1

Please fix this in 6.17 Khaled, some of my script-users are mad wink

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Confirmed. I can imagine the cause of this, though smile


Saturn, QuakeNet staff
Joined: Dec 2002
Posts: 36
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Dec 2002
Posts: 36
Hi,

and could you tell us the reason? I have no idea, why the socket should be closed.


cu

TC / Mario
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Quote:
Hi,

and could you tell us the reason? I have no idea, why the socket should be closed.

It shouldn't! But, I'm guessing Khaled assumed that getting 0 back from a read operation on a UDP socket means somewhat the same as getting 0 back from a read operation on a TCP socket, which is, that the socket EOF'ed and should be closed. That isn't the case (UDP sockets ever reach end-of-file, they're not stream-based) but it's an easy mistake to make. But again: I'm just guessing here.

Joined: Jul 2004
Posts: 150
D
Vogon poet
Offline
Vogon poet
D
Joined: Jul 2004
Posts: 150
Confirmed here too. (mIRC 6.16/6.15/6.12)

I also guess this is the reason.


Link Copied to Clipboard