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
_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp