[Mono-dev] Bug in Socket.BeginSendFile

Torello Querci tquerci at gmail.com
Tue Feb 12 10:42:50 UTC 2013


Bug 10233 filled.

The patch is in attach with the code to get the exception.


Best Regards


2013/2/11 Rodrigo Kumpera <kumpera at gmail.com>

> Please file a bug report or do a pull request, this way this fix won't be
> lost.
>
> Thanks for looking into this.
>
>
> On Sat, Feb 9, 2013 at 2:02 AM, Torello Querci <tquerci at gmail.com> wrote:
>
>> 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
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130212/ad0a9c7b/attachment.html>


More information about the Mono-devel-list mailing list