[Mono-bugs] [Bug 43240][Wis] New - Socket.Poll timeout fault in HttpWebResponse ctor

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 18 May 2003 15:20:06 -0400 (EDT)

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 tds00mahi@thn.htu.se.


--- shadow/43240	Sun May 18 15:20:06 2003
+++ shadow/43240.tmp.3338	Sun May 18 15:20:06 2003
@@ -0,0 +1,40 @@
+Bug#: 43240
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tds00mahi@thn.htu.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Socket.Poll timeout fault in HttpWebResponse ctor
+Description of Problem:
+The System.Net.HttpWebResponse class internal constructor polls a socket
+with a timeout value passed as a parameter. The timeout value is measured
+in milliseconds when called from the HttpWebRequest.GetResponseInternal()
+method (HttpWebRequest only knows of milliseconds). This is then directly
+passed to the Socket.Poll() method which is expecting a timeout measured in
+microseconds. This caused a WebException (The request timed out) to be
+thrown from the constructor on the default timeout value (100'000) from
+HttpWebRequest (it's calculated to 0.1 seconds instead of 100 seconds).
+Units of timeouts are mentioned here as found on MSDN.
+Actual Results:
+WebException thrown.
+Expected Results:
+the Socket.Poll should not throw the exception - it should have plenty of
+time (100 seconds by default).
+How often does this happen? 
+It was kind of tricky to pin down as it doesn't happen all the time, it was
+more frequent on wlans for example.