Is there a testcase for this? This works fine for me, I'm inclined to
believe there's a bug in the testcase.
My code relying on the callback on disconnect works fine with Microsoft's
.NET and it doesn't work with Mono because the callback never occurs. Thus,
the behaviour from both frameworks
Hey,
It really does look like a valid issue but as it stands there's no
testcase to reproduce the issue. I do this *all* the time in the
testcases for MonoTorrent and my callbacks are always invoked. I
explicitly test for this in some of my testcases. There are times when
EndReceive is not
socket.BeginReceive(receive_buffer, 0, FlockNode.buffer_size, 0,
new AsyncCallback(ReceiveDone), socket);
If the Socket gets disconnected by the remote host,
ReceiveDone is called, and EndReceive will throw a SocketException;
thus you know that your socket is now disconnected without
Is there a testcase for this? This works fine for me, I'm inclined to
believe there's a bug in the testcase.
Alan.
On Fri, Apr 9, 2010 at 4:21 PM, Stefan [At] swieser1...@gmail.com wrote:
socket.BeginReceive(receive_buffer, 0, FlockNode.buffer_size, 0,
new AsyncCallback(ReceiveDone), socket);
Can you provide a testcase demonstrating the bug or more clearly
explain what you mean by using code samples?
Thanks,
Alan
On Wed, Mar 24, 2010 at 1:50 AM, Pigo Chu pigo_...@hotmail.com wrote:
I am designing a simple http server use Async Socket model.
And test performance use ab (apache
I am designing a simple http server use Async Socket model.
And test performance use ab (apache benchmark) Like ab -c 1000 -n 10 -k
http://myserver...
when ab request end , but my http server never got disconnect signal many
times.
Why happend this ? because Socket.BeginReceive no throw