* Socket.cs: Do not set the Send and Receive buffer sizes for the
socket to the defaults set on Windows, they kill our performance.
Thanks to Zoltan Varga for tracking the performance issue down.
The bug was #325032
svn path=/trunk/mcs/; revision=88700
2007-10-21 Robert Jordan <[email protected]>
* Socket.cs: Remove GetHashCode override from the NET_2_0
profile. Add LAMESPEC comment. Fixes bug #325113.
In Test/System.Net.Sockets:
2007-10-21 Robert Jordan <[email protected]>
* SocketTest.cs: Enable GetHashCodeTest.
svn path=/trunk/mcs/; revision=87865
* Socket.cs: SupportsIPv6 is obsolete in the 2.0 profile. Stub
out BeginReceiveMessageFrom(), BeginSendFile(),
EndReceiveMessageFrom(), EndSendFile(), ReceiveMessageFrom(), and
SendFile().
* IPPacketInformation.cs: New in the 2.0 profile
* SocketFlags.cs: Remove useless (and empty) inline documentation,
and add 2.0 items.
* TcpListener.cs: Mark Server as public in the 2.0 profile.
* UdpClient.cs: Mark Dispose(bool) as protected in the 2.0
profile.
System.Net.Sockets should now be 2.0-complete.
svn path=/trunk/mcs/; revision=71759
* Socket.cs: There's no point checking the SO_ERROR status of a
socket after poll() or select() if we already know that connected
== true.
2007-01-26 Dick Porter <[email protected]>
* SocketTest.cs: New test for SO_ERROR reading, returning the same
value over and over.
svn path=/trunk/mcs/; revision=71751
* Socket.cs(SocketDefaults): Catch and ignore any SocketExceptions
thrown from setting default socket options - some platforms might
not support a particular default we're trying to set.
svn path=/trunk/mcs/; revision=71386
* Socket.cs: replace hardcoded error numbers with the SocketError
values. When ReceiveTimeout is set on a blocking socket, correctly
report timeouts in the generated exception.
* SocketException.cs: add new internal ctor (int, string).
svn path=/trunk/mcs/; revision=63802
* Socket.cs: patch from Sanghyeon Seo that implements
(Send|Receive)Timeout for 2.0.
* MulticastOption.cs: more 2.0 stuff.
svn path=/trunk/mcs/; revision=62157
* Socket.cs:
* SocketError.cs: implemented Reseive/Send overloads that do not throw
in case of error. Patch by Tomi Valkeinen.
svn path=/trunk/mcs/; revision=59333
* Socket.cs: Don't call connect(2) twice for non-blocking sockets,
it breaks on macos (and probably other bsd-based stacks too,) use
poll() and getsockopt() to check if it worked.
svn path=/trunk/mcs/; revision=51565
* Socket.cs: adapted Select to the new Select_internal that uses poll()
instead of select(). Managed part of the fix for bug #71203.
svn path=/trunk/mcs/; revision=45298
* System.Net/WebConnection.cs: prevent 2 nullrefs when the aborting
during Connect() and reset the status to Success before starting a
new request.
* System.Net.Sockets/Socket.cs: apply the same hack on blocking Connect
calls as the one used in Accept.
Fixes bug #75025.
svn path=/trunk/mcs/; revision=44919
* Socket.cs: see bug #74842, which is fixed with this patch for details
and test cases on the blocking behavior of accept() when close() is
called from another thread. The solution applied is to Abort the thread
that is blocking in Accept_internal() when someone calls Close (), then
reset the abort state if the socket is disposed and return the same
error as MS (10004 - interrupted).
svn path=/trunk/mcs/; revision=44192
* Socket.cs: match MS behavior on SetSocketOption with a boolean
argument. MS 1.1 throws an ArgumentException, but 2.0 turns true/false
into 1/0 and works fine. Fixes bug #71753. Added checks for disposed
in the 3 SetSocketOption.
svn path=/trunk/mcs/; revision=44160
* Socket.cs: if there are outstanding aio requests and one of them gets
an ObjectDisposedException, throw the same exception for the rest.
svn path=/trunk/mcs/; revision=43917
* Socket.cs: removed hack added to fix bug #53229 (more than a year ago)
that kept sockets opened until all AIO operations where finished. If
the socket is closed, Receive returns 0 in EndReceive, the rest throw
the ObjectDisposedException. Set the socket handle to -1 when closing.
svn path=/trunk/mcs/; revision=43865
* Socket.cs: Begin/End Send/SendTo guarantee that all bytes are written
or an exception is thrown. Fixes bug #74475.
svn path=/trunk/mcs/; revision=43235
* Socket.cs: no need for locking in Worker. The actual read / write for
Receive / Send is performed in the runtime time.
svn path=/trunk/mcs/; revision=43180
* Socket.cs: update socket connected status in an async request finishes
synchronously. Use 'callback' instead of 'real_callback' field, which is
now unused.
svn path=/trunk/mcs/; revision=42715
* Socket.cs: added SocketOperation enum and 2 new fields to
SocketAsyncResult that are used by the runtime. Asynchronous read/write
are serialized so that only 1 of each kind is really 'active'.
Handle non-blocking connects in BeginConnect instead of doing 2 Poll()
in the threadpool.
* NetworkStream.cs: better message for the exception.
svn path=/trunk/mcs/; revision=42661
* Socket.cs: for Receive*/Send*, don't set the connected status to false
when the error is EINPROGRESS or EWOULDBLOCK.
svn path=/trunk/mcs/; revision=38128
* Socket.cs (Sockets ): Set Accept()ed socket blocking status to
be the same as the listening socket. This follows MS behaviour.
svn path=/trunk/mcs/; revision=34989