Click here to Skip to main content
15,884,099 members

C# on win calling web service apache on unix - runs out of ports

Andy Lanng asked:

Open original thread
Hi,

I hope someone can follow all this because I am having a problem with it all, so please feel free up insert correct terminology and correct concepts I have got wrong. Ok - here goes:

I have an application that sends 'jobs' to a linux machine via an apache web service. It's pretty slow so I took some time to speed it up but I'm now hitting the wall with regards to the linux machines free ports. There are <30k ports available with a keep_alive time of 2 hours. I am looking onto changing this to increase available ports and reducing the keep_alive time but there are other machines that require the keep alive time to be longer than I had hoped. not quite 2 hours but long enough that I may well hit the wall in the future.

The question at it's core is 'What do I do to solve this?', but hopefully I have broken that down with these two questions:
1: Is there a way keep using a single port for each subsequent request?. Or...
2: Is there a way that I can tell the linux machine to close the port when I'm done with it?

I have limited access to the linux machine and limited scope to change it's behavour, but it is do-able if that would be the only (or very much best) solution.

I don't really know what search terms to look for so I haven't been able to find much in the way of online articles so any help there would be very much appreciated.

Thanks
G

PS: I spoke to another techie here and he says I should mention that the webservice is defined in a wsdl that specifies a port:

XML
  <wsdl:binding name="JobservBinding" type="tns:JobservPort">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    <wsdl:operation name="addxec">
<!--etc...--!>


But this again confuses me :?


PS exact error
"Only one usage of each socket address (protocol/network address/port)\r\nis normally permitted 10.<ip of="" the="" linux="" server="">:80"
Tags: C#, Linux, Webservice

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900