[Mono-bugs] [Bug 399048] New: "_wapi_connect: error looking up socket handle" when running multithreaded HttpWebRequests
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 10 15:41:27 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=399048
Summary: "_wapi_connect: error looking up socket handle" when
running multithreaded HttpWebRequests
Product: Mono: Runtime
Version: SVN
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: io-layer
AssignedTo: dick at novell.com
ReportedBy: jan.oravec at 6com.sk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=221346)
--> (https://bugzilla.novell.com/attachment.cgi?id=221346)
Example of code triggering the bug
We are experimenting with web crawler running on Mono, which creates many
threads, each fetching web pages with HttpWebRequest/HttpWebResponse classes.
Shortly after running the attached code (do not forget to set an URL address),
I get warnings like this:
** (./foo.exe:12197): WARNING **: _wapi_connect: error looking up socket handle
0x3
** (./foo.exe:12197): WARNING **: _wapi_connect: error looking up socket handle
0x4
Sometimes followed by exception:
Unhandled Exception: System.ArgumentOutOfRangeException: Non-negative number
required.
Parameter name: srcOffset
at System.Buffer.BlockCopy (System.Array src, Int32 srcOffset, System.Array
dst, Int32 dstOffset, Int32 count) [0x00000]
at System.Net.WebConnectionStream.BeginRead (System.Byte[] buffer, Int32
offset, Int32 size, System.AsyncCallback cb, System.Object state) [0x00000]
at System.Net.WebConnectionStream.Read (System.Byte[] buffer, Int32 offset,
Int32 size) [0x00000]
at MainClass.Work () [0x00000]
As you can see from the code, the above exception is impossible to happen
without memory corruption (probably related with these wapi warnings).
The testing machine has 4 cores (2x dual-core Opteron).
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list