Bug 5495 - Test System.Net.Sockets.SocketTest.ConnectedProperty Fail
Summary: Test System.Net.Sockets.SocketTest.ConnectedProperty Fail
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2012-06-03 22:48 UTC by Vinicius Jarina
Modified: 2016-11-11 09:30 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
test case (1.18 KB, application/octet-stream)
2012-06-30 15:20 UTC, Martin Baulig
Details

Description Vinicius Jarina 2012-06-03 22:48:08 UTC
MonoTests.System.Net.Sockets.SocketTest.ConnectedProperty :   Expected: True
  But was:  False


server.Connected remains true.
Comment 1 Martin Baulig 2012-06-30 15:20:45 UTC
Created attachment 2137 [details]
test case
Comment 2 Martin Baulig 2012-06-30 17:06:26 UTC
On Mac OS, recv() returns 0 - Linux returns -1 (ECONNRESET).
Comment 3 Martin Baulig 2012-07-02 12:21:07 UTC
According to the man pages, recv() should only return 0 when the connection has been closed.

So in theory, checking for that in _wapi_recvfrom() should fix that, but I'm afraid of breaking something.
Comment 4 Martin Baulig 2016-11-11 09:30:36 UTC
Closing ancient bugs.

Note You need to log in before you can comment on or make changes to this bug.