[Mono-bugs] [Bug 76496][Wis] Changed - GetSocketOption Error
returns native error code
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Oct 21 03:29:33 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by matthew at zeroc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76496
--- shadow/76496 2005-10-21 03:21:50.000000000 -0400
+++ shadow/76496.tmp.1592 2005-10-21 03:29:33.000000000 -0400
@@ -41,6 +41,17 @@
All the time.
Additional Information:
------- Additional Comments From michi at zeroc.com 2005-10-21 03:21 -------
Just to clarify, we expected to get 100061, not 61.
+
+------- Additional Comments From matthew at zeroc.com 2005-10-21 03:29 -------
+I think the simplest way to fix this bug is to alter
+mono/io-layer/sockets.c:_wapi_getsockopt. At the bottom a case needs
+to be added for SO_ERROR (as as there is some special case code for
+SO_RCVTIMEO and SO_SNDTIMEO). Something like this:
+
+ if (optname == SO_ERROR)
+ *((int *) optval) = errno_to_WSA(*((int *) optval),
+__func__);
+ }
More information about the mono-bugs
mailing list