Menu

#31 little bug in XmlRpcSource.cpp

open
5
2008-10-08
2008-10-08
No

Compilation of XmlRpcSource.cpp complains about "-1" under Windows (in particular, in Cygwin) where Socket should be either unsigned __int64 or

unsigned int.

I think these changes could be introduced (into CVS) to fix:

if (_fd != (XmlRpcSocket::Socket)-1)
{
XmlRpcUtil::log(2,"XmlRpcSource::close: closing socket %d.", _fd);
XmlRpcSocket::close(_fd);
_fd = (XmlRpcSocket::Socket)-1;
}

Discussion


Log in to post a comment.