[wt4hq] tunnelsrv is crashing all the time

Mario Lorenz ml at vdazone.org
Sun Jul 15 02:21:35 CEST 2007


Am 14. Jul 2007, um 14:28:38 schrieb Dieter Kritzer:
> 
> our linux-tunnelsrv is crashing very 5 minutes.
> 
> any idea?

I've found the bug. Finally. Extremely well hidden.
in tx_proc the call to _send() has a "+1" in the end.
That will make the if (nBytesSent == SOCKET_ERROR) wrong.
SocketError is defined as -1, and the -1 error code is thus
changed into a 0, so the whole error handling logic does
not kick in.
So when _send() hits an error (full buffer) it will go into
a neverending loop...

The problem we are having now is that the tunnel client, if the
connection breaks for whatever reason, when trying to reconnect,
will send garbage (wt protocol data) as username/password...
But that requires fixing the client which we cannot do...

Mario

-- 
Mario Lorenz                            Internet:    <ml at vdazone.org>
                                        Ham Radio:   DL5MLO at DB0ERF.#THR.DEU.EU
"Your mouse has moved. Windows NT must be restarted
 for the change to take effect. Reboot now ?   [ OK ]"


More information about the Wt4hq mailing list