* TcpConnectionPool.cs: Set the NoDelay flag on the socket to avoid
excessive waiting by the tcp stack. Fixes#416462.
svn path=/trunk/mcs/; revision=113381
* TcpChannel.cs (ParseTcpURL): TcpClientTransportSink needs the
host component, so extract that info into its own string as well.
svn path=/trunk/mcs/; revision=113321
Fix for bug #320298
* TcpClientTransportSink.cs: Updated for change to
TcpChannel.ParseTcpURL(). We now need to do our own integer
conversion/validation of the port.
* TcpChannel.cs (ParseTcpURL): We need to match the
protocol ("tcp") case-insensitively. The objectURI is supposed to
include the leading '/' character. Also, we need to ignore invalid
port designators since Microsoft's .NET implementation of
TcpChannel.Parse() doesn't seem to care that they are valid.
svn path=/trunk/mcs/; revision=112912
* SocketCachePolicy.cs: Added.
* IpcChannel.cs: Fixed argument names to match MS. Changed spaces to
tabs.
* IpcClientChannel.cs: Fixed argument names to match MS. Changed spaces
to tabs.
* IpcServerChannel.cs: Fixed argument names to match MS. Changed spaces
to tabs.
* TcpChannel.cs: Fixed argument names to match MS.
* TcpServerChannel.cs: Fixed argument names to match MS.
* MetaData.cs: Fixed argument names to match MS.
* SdlChannelSink.cs: Fixed argument names to match MS.
* SUDSGeneratorException.cs: Marked Serializable on 2.0 profile, and
added deserialization ctor.
* SUDSParserException.cs: Marked Serializable on 2.0 profile, and
added deserialization ctor.
* RemotingClientProxy.cs: Marked ComVisible on 2.0 profile.
svn path=/trunk/mcs/; revision=110042
* TcpServerChannel.cs (ProcessMessages): Flush the stream only when
necessary (TcpServerTransportSink.InternalProcessMessage does it anyway),
otherwise pending OneWay & async messages are lost.
* TcpMessageIO.cs (SendMessageStream): Mark OneWay messages as such.
Fixes MS.NET interoperability.
* TcpClientTransportSink.cs (AsyncProcessRequest):
Use the new TcpMessageIO.SendMessageStream overload to mark OneWay
requests. Fixes bug #80406.
svn path=/trunk/mcs/; revision=70685
* TcpChannel.cs: The remoting infrastructure does not call
StartListening() anymore, so it has to be called by the channel.
svn path=/trunk/mcs/; revision=69705
* TcpServerTransportSink.cs, TcpServerChannel.cs:
When sending an async call response, don't use the original request
stream because it may have been used by another call.
svn path=/trunk/mcs/; revision=65442
* TcpChannel.cs: Fixed line endings. Set eol-style to native.
* TcpServerTransportSink.cs: Fixed line endings. Set eol-style to
native.
* TcpConnectionPool.cs: Fixed line endings. Set eol-style to CRLF.
* TcpClientTransportSinkProvider.cs: Fixed line endings. Set eol-style
to native.
* TcpMessageIO.cs: Set eol-style to native.
* TcpServerChannel.cs: Fixed line endings. Set eol-style to native.
* TcpClientTransportSink.cs: Fixed line endings. Set eol-style to
native.
svn path=/trunk/mcs/; revision=61302
* TcpServerChannel.cs: In StopListening, wait for the server thread
to stop before returning. This fixes bug #74962.
svn path=/trunk/mcs/; revision=44686
* TcpServerTransportSink.cs: Set IPAddress and ConnectionId
transport headers. This fixes bug #71423.
* TcpServerChannel.cs: Use Socket instead of TcpClient, so we can
easily get the IP address of the client. Added properties in
ClientConnection to get the IP address and the connection id.
svn path=/trunk/mcs/; revision=39524
* TcpMessageIO.cs: Added a buffer parameter to ReceiveMessageStatus,
to avoid creating unneded buffers.
* TcpServerChannel.cs, TcpClientTransportSink.cs: Use new buffer
parameter in ReceiveMessageStatus.
svn path=/trunk/mcs/; revision=39323
* TcpConnectionPool.cs: Don't limit client connections.
This fixes bug #70700. Create connections from outside the pool lock.
* TcpMessageIO.cs: Throw real exceptions when errors occur.
* TcpServerChannel.cs: Use the new RemotingThreadPool to manage threads.
This also fixes bug #70700.
svn path=/trunk/mcs/; revision=38948
* TcpMessageIO.cs: Removed some more WriteByte calls.
* TcpClientTransportSink.cs: Flush the net stream after writing
a message.
svn path=/trunk/mcs/; revision=37875
* TcpChannel.cs: Don't use regular expressions to parse the url, it's
too slow.
* TcpMessageIO.cs: Read byte chunks using the new StreamRead method,
which won't block if the connection is closed.
* TcpServerChannel.cs: Flush the stream after writing the response.
Wrap the close call in a try/catch (some bytes can be left in the
buffered stream if a connection is suddently closed, and it will fail
when trying to flush them).
svn path=/trunk/mcs/; revision=37564
* TcpConnectionPool.cs: Access the socket stream through a
BufferedStream.
* TcpMessageIO.cs: Avoid ReadByte().
* TcpServerChannel.cs: Access the socket stream through a
BufferedStream. Abort the connection if an unknown message is received.
All this fixes performance bug #70337.
svn path=/trunk/mcs/; revision=37520
data if the provided url does not have the expected format. This fixes
a regression from the fix for bug #66768 and fixes#68669.
svn path=/trunk/mcs/; revision=35241