66 Commits
Author SHA1 Message Date
Joshua Peterson 087c016f5c Try to use an IPv4 address first for TCP remoting (#3507)
* In the .NET implementation of TcpServerChannel, if IPv4 is supported, the address for the host will use the first IPv4 address.
* Even if the first address is an IPv6 address, it should be skipped, as the server side will expect and IPv4 address.
* Change this implementation to look for an IPv4 address first, then fall back to whatever the first address is (IPv4 or IPv6) if things don't work out.
2016-09-22 09:49:18 -04:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Miguel de Icaza b5da7cd80d [System.Runtime.Remoting] Build if DBEUG Is defined 2014-05-25 00:41:55 -04:00
Duncan Mak 5996062400 Fix the .gitattribute file for 'System.Runtime.Remote.Channels.Tcp'.
It was accidentally corrupted by af53850f.
2012-02-28 17:37:40 -05:00
Rodrigo Kumpera af53850f4b Move remset scan code to its file. 2012-02-01 19:06:17 -02:00
QuickJack 8037341228 Fixes some warnings in System.Runtime.Remoting.dll 2011-12-29 13:14:50 +01:00
Gonzalo Paniagua Javier eb2a5490f2 Adapt to new exception in threadpool behavior.
Since an exception in the threadpool can kill the application,
	silently ignore it when we know it is not harmful.
2010-08-11 13:15:39 -04:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Robert Jordan 081c1c9c50 2008-09-18 Robert Jordan <[email protected]>
* TcpConnectionPool.cs: Set NoDelay on both profiles.


svn path=/trunk/mcs/; revision=113395
2008-09-18 08:32:17 +00:00
Marek Habersack 782118641c Socket.NoDelay is 2.0+ only
svn path=/trunk/mcs/; revision=113392
2008-09-18 06:29:36 +00:00
Zoltan Varga 10ae206777 2008-09-18 Zoltan Varga <[email protected]>
* 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
2008-09-18 02:27:23 +00:00
Jeffrey Stedfast 5b63c536b6 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpChannel.cs (ParseTcpURL): If given "tcp://", don't set host
	to "", leave it as null.


svn path=/trunk/mcs/; revision=113361
2008-09-17 23:26:51 +00:00
Jeffrey Stedfast 7c1f35071c 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpClientChannel.cs (TcpClientChannel): Use the default
	SinkProviders if the sinkProvider argument is null.


svn path=/trunk/mcs/; revision=113329
2008-09-17 16:55:24 +00:00
Jeffrey Stedfast ecf535bb83 oops
svn path=/trunk/mcs/; revision=113322
2008-09-17 15:39:00 +00:00
Jeffrey Stedfast 1228b92905 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpChannel.cs (ParseTcpURL): TcpClientTransportSink needs the
	host component, so extract that info into its own string as well.


svn path=/trunk/mcs/; revision=113321
2008-09-17 15:38:27 +00:00
Jeffrey Stedfast f54fd3ae5b 2008-09-12 Jeffrey Stedfast <[email protected]>
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
2008-09-12 22:10:44 +00:00
Gert Driesen 36e65ff2e6 * System.Runtime.Remoting_test.dll.sources: add SocketCachePolicy.cs.
* 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
2008-08-09 14:06:44 +00:00
Robert Jordan a268517e55 2008-06-18 Robert Jordan <[email protected]>
* TcpMessageIO.cs: Handle zero length streams. Fixes #398783.


svn path=/trunk/mcs/; revision=106194
2008-06-19 10:38:23 +00:00
Zoltan Varga 8708f16017 2008-01-25 Zoltan Varga <[email protected]>
* TcpChannel.cs (Init): Handle properties == null.

	* TcpClientChannel.cs (.ctor): Ditto. Fixes #355905.

svn path=/trunk/mcs/; revision=93953
2008-01-25 19:38:31 +00:00
Robert Jordan a8907b2e98 2006-01-09 Robert Jordan <[email protected]>
* 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
2007-01-09 00:22:40 +00:00
Lluis Sanchez 83e2dc7d21 2007-01-08 Lluis Sanchez Gual <[email protected]>
* TcpChannel.cs, TcpServerChannel.cs: Moved StartListening call to
	  the constructor of TcpServerChannel.


svn path=/trunk/mcs/; revision=70646
2007-01-08 12:53:01 +00:00
Lluis Sanchez 4dfd020e4f 2006-12-18 Lluis Sanchez Gual <[email protected]>
* 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
2006-12-19 01:18:22 +00:00
Lluis Sanchez 43225842e2 2006-09-15 Lluis Sanchez Gual <[email protected]>
* 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
2006-09-15 09:54:54 +00:00
Gert Driesen bd3d46162c * TcpClientChannel.cs: Marked CreateMessageSink virtual.
* TcpServerChannel.cs: Marked GetUrlsForUri virtual.

svn path=/trunk/mcs/; revision=61304
2006-05-31 09:13:12 +00:00
Gert Driesen 5c3bb4c9c2 * TcpClientChannel.cs: Set eol-style to native.
* 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
2006-05-31 08:46:36 +00:00
Lluis Sanchez e838fca27d 2005-11-08 Lluis Sanchez Gual <[email protected]>
* TcpServerChannel.cs: Fix null ref exception.

	* TcpServerChannel.cs, TcpConnectionPool.cs: only TARGET_JVM changes


svn path=/trunk/mcs/; revision=52675
2005-11-08 01:30:42 +00:00
Svetlana Zholkovsky 2fa7f22e61 Add System.Runtime.Remoting.vmwcsproj and System.Runtime.Remoting.sln; Some TARGET_JVM changes
svn path=/trunk/mcs/; revision=52622
2005-11-06 11:08:53 +00:00
Lluis Sanchez 8b0c929fea 2005-07-25 Lluis Sanchez Gual <[email protected]>
* TcpChannel.cs: Don't create a server channel when the
	default constructor is used. Fixes bug #75626.


svn path=/trunk/mcs/; revision=47650
2005-07-25 14:08:08 +00:00
Lluis Sanchez 060d8e6ff8 2005-05-31 Lluis Sanchez Gual <[email protected]>
* TcpServerTransportSink.cs: Remove the channel uri from the
	received uri.
	

svn path=/trunk/mcs/; revision=45270
2005-05-31 20:05:51 +00:00
Lluis Sanchez fce714f95c 2005-05-31 Lluis Sanchez Gual <[email protected]>
* TcpServerChannel.cs: Use IP address in object uris by default.
	Fixes bug #54234. Removed unused field.
	* TcpClientTransportSink.cs: Fix warning.


svn path=/trunk/mcs/; revision=45241
2005-05-31 08:30:34 +00:00
Lluis Sanchez 3f543b7841 2005-05-18 Lluis Sanchez Gual <[email protected]>
* TcpServerChannel.cs: In StopListening, wait for the server thread
	to stop before returning. This fixes bug #74962.


svn path=/trunk/mcs/; revision=44686
2005-05-18 15:45:28 +00:00
Lluis Sanchez c71cfa5d74 2005-01-25 Lluis Sanchez Gual <[email protected]>
* 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
2005-01-25 19:18:16 +00:00
Lluis Sanchez 2d43636c27 2005-01-21 Lluis Sanchez Gual <[email protected]>
* 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
2005-01-21 18:12:51 +00:00
Lluis Sanchez c7a8eadb97 2005-01-14 Lluis Sanchez Gual <[email protected]>
* 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
2005-01-14 17:29:18 +00:00
Lluis Sanchez ab1475c0c5 2004-12-17 Lluis Sanchez Gual <[email protected]>
* TcpMessageIO.cs: Removed some more WriteByte calls.
	* TcpClientTransportSink.cs: Flush the net stream after writing
	a message.


svn path=/trunk/mcs/; revision=37875
2004-12-17 12:02:41 +00:00
Lluis Sanchez 08b509b1a7 2004-12-10 Lluis Sanchez Gual <[email protected]>
* 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
2004-12-10 11:37:16 +00:00
Lluis Sanchez 0456111a22 2004-12-09 Lluis Sanchez Gual <[email protected]>
* 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
2004-12-09 20:47:05 +00:00
Lluis Sanchez 5c6b3be0c5 * TcpClientChannel.cs: In CreateMessageSink, process the remote channel
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
2004-10-22 14:12:02 +00:00
Lluis Sanchez 3cafdf69c5 * TcpServerChannel.cs: Set channel name from the provided properties.
This fixes bug #61592.

svn path=/trunk/mcs/; revision=31169
2004-07-15 09:30:22 +00:00
Duncan Mak bab786ade5 Add licensing info
svn path=/trunk/mcs/; revision=30348
2004-06-24 21:38:17 +00:00
Lluis Sanchez fe5721d637 * TcpChannel.cs: Made Init private.
* TcpClientTransportSink.cs, TcpClientTransportSinkProvider.cs,
	  TcpServerTransportSink.cs: Made internal.

svn path=/trunk/mcs/; revision=27246
2004-05-13 08:59:05 +00:00
Lluis Sanchez 3631cd3d34 * TcpClientChannel.cs: Initialize the sink provider in the default
constructor.

svn path=/trunk/mcs/; revision=25596
2004-04-16 10:17:25 +00:00
Lluis Sanchez cd1b661f88 * TcpServerChannel.cs: In the ProcessMessages() loop, moved the closing of
the stream to the finally block, so it is called if the thread is aborted.

svn path=/trunk/mcs/; revision=23714
2004-03-05 00:24:03 +00:00
Lluis Sanchez 476f6f1165 * TcpClientTransportSink.cs: Set the RequestUri transport header before
sending the request.

svn path=/trunk/mcs/; revision=23550
2004-02-27 19:36:37 +00:00
Lluis Sanchez 1bb5afd4d4 * TcpClientTransportSink.cs: Release the connection after sending an
OneWay call. This fixes bug #54671.

svn path=/trunk/mcs/; revision=23352
2004-02-23 10:44:52 +00:00
Lluis Sanchez 98e57017d6 * TcpServerChannel.cs: If useIpAddress and bindAddress are both specified,
set bindAddress as the host address for the client.

svn path=/trunk/mcs/; revision=21448
2003-12-23 15:14:45 +00:00
Lluis Sanchez aee50cfe80 TcpServerChannel.cs: Fixes in channel initialization.
svn path=/trunk/mcs/; revision=21353
2003-12-19 17:44:37 +00:00
Lluis Sanchez 381e5a148b TcpChannel.cs: Added null check.
svn path=/trunk/mcs/; revision=21071
2003-12-12 17:00:05 +00:00