bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with Socket


From: Paul Marculescu
Subject: problem with Socket
Date: Wed, 04 Jul 2001 21:25:52 +0300

Hi!

I just discovered a problem in class Socket.
I made a server which sends a salute message when a client connects.

But it crashed when the computer was scanned, because, the scanner (
nmap ) closed the connection to quickly and there wasn't enough time to
construct a TCPSession. In fact the Socket from which the TCPSession
should be constructed didn't make it out of the constructor, because the
fd was invalid. So it tried to throw (Socket*)(this) but "this" wasn't
constructed so it crashed.

I made a little exception class and replaced the throw in
Socket::Socket( int ).

Any other suggestions?



--
Paul Marculescu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]