Bug 277 - Net.Tcp Port Sharing doesn't seem to work.
Summary: Net.Tcp Port Sharing doesn't seem to work.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: master
Hardware: PC Linux
: --- minor
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-12 03:39 UTC by Stephen Kou
Modified: 2011-08-13 06:07 UTC (History)
2 users (show)

Tags: net.tcp, wcf, port sharing
Is this bug a regression?: ---
Last known good build:


Attachments
Repro testcase (836 bytes, text/plain)
2011-08-13 06:07 UTC, Stephen Kou
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 277 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Stephen Kou 2011-08-12 03:39:49 UTC
On MS.NET, you can have multiple service endpoints under a <service> all listening on the same port.  I believe you can even have endpoints on different services listening on the same port, but the former scenario was what I tested.

Mono throws an exception when it tries to set up what I presume to be the second endpoint, claiming the address is already in use.

I presume it's going to be quite a bit of work to set up port sharing (since it seems each channel is given its own TcpListener), so i'm goign to put this lower priority.
Comment 1 Miguel de Icaza [MSFT] 2011-08-12 17:11:17 UTC
Is this using XSP, mod_mono or hosting your own service?

Could you provide us with a self-contained test case, so we can look at the exact code you want fixed?
Comment 2 Stephen Kou 2011-08-13 06:07:54 UTC
Created attachment 120 [details]
Repro testcase

the following code allows two service endpoints to share the same port.  It works fine on windows/ms.net, using mono's compiled binaries.  On mono itself, the initialization dies with "Address already in use" exception.