[svn] commit: r4058 - /branches/trac448/src/lib/asiolink/tests/asiolink_unittest.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Dec 28 20:51:52 UTC 2010
Author: jinmei
Date: Tue Dec 28 20:51:49 2010
New Revision: 4058
Log:
oops, the errno should have been ENOPROTOOPT
Modified:
branches/trac448/src/lib/asiolink/tests/asiolink_unittest.cc
Modified: branches/trac448/src/lib/asiolink/tests/asiolink_unittest.cc
==============================================================================
--- branches/trac448/src/lib/asiolink/tests/asiolink_unittest.cc (original)
+++ branches/trac448/src/lib/asiolink/tests/asiolink_unittest.cc Tue Dec 28 20:51:49 2010
@@ -341,9 +341,9 @@
int recv_options = 0;
if (setsockopt(sock_, SOL_SOCKET, SO_RCVTIMEO, &timeo,
sizeof(timeo))) {
- if (errno == EOPNOTSUPP) {
+ if (errno == ENOPROTOOPT) {
// Workaround for Solaris: it doesn't accept SO_RCVTIMEO
- // with the error of EOPNOTSUPP. Since this is a workaround
+ // with the error of ENOPROTOOPT. Since this is a workaround
// for rare error cases anyway, we simply switch to the
// "don't wait" mode. If we still find an error in recv()
// can happen often we'll consider a more complete solution.
@@ -722,7 +722,7 @@
const struct timeval timeo = { 10, 0 };
int recv_options = 0;
if (setsockopt(sock_, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo))) {
- if (errno == EOPNOTSUPP) { // see ASIOLinkTest::recvUDP()
+ if (errno == ENOPROTOOPT) { // see ASIOLinkTest::recvUDP()
recv_options = MSG_DONTWAIT;
} else {
isc_throw(IOError, "set RCVTIMEO failed: " << strerror(errno));
More information about the bind10-changes
mailing list