[Mono-dev] Bug in Socket.BeginSendFile

Torello Querci tquerci at gmail.com
Sat Feb 9 07:02:29 UTC 2013


Hi,

working on Socket class I find that BeginSendFile method is broken.
Main.cs in attach is a test case.
On unpatched mono version I get

Unhandled Exception:
System.ArgumentException: Invalid IAsyncResult -
Datatype:System.Runtime.Remoting.Messaging.AsyncResult
Parameter name: syncResult
  at System.Net.Sockets.Socket.EndSendFile (IAsyncResult asyncResult)
[0x00000] in <filename unknown>:0
  at test_sendfile.MainClass.FileSendCallback (IAsyncResult ar) [0x00000]
in <filename unknown>:0


Since I need to have async send file working I try to fix it instead
realize all on my code.
Patch is included in this mail.

Please can anyone give a look?
Need I to fill a bug report?

Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130209/ce805271/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cs
Type: application/octet-stream
Size: 1271 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130209/ce805271/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BeginSendFile.patch
Type: application/octet-stream
Size: 782 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130209/ce805271/attachment-0001.obj>


More information about the Mono-devel-list mailing list