[Mono-bugs] [Bug 538013] System.Net.NetworkInformation.Ping does not time out correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 10 06:22:50 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=538013

User david.welch at thorcom.co.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=538013#c1





--- Comment #1 from David Welch <david.welch at thorcom.co.uk>  2009-09-10 04:22:49 MDT ---
Simple imperfect patch of
mcs/class/System/System.Net.NetworkInformation/Ping.cs which will adjust the
timeout for each iteration around the loop:

205d204
<                 s.ReceiveTimeout = timeout;
213c212
< 
---
> 				long newtimeout = timeout;
218a218
> 					s.ReceiveTimeout = newtimeout;
231a232,235
> 					newtimeout = timeout - rtt;
> 					if (newtimeout <= 0)
> 						return new PingReply (null, new byte [0], options, 0, IPStatus.TimedOut);
>

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list