jglobus / JGlobus

jGlobus is a collection of Java client libraries for Globus® Toolkit security, GRAM, and GridFTP.
http://www.globus.org/toolkit/jglobus/
Apache License 2.0
24 stars 44 forks source link

No free ports available #123

Open rsandhu1 opened 10 years ago

rsandhu1 commented 10 years ago

I am giving a port range in cog.properties like following. Looks like the code is never doing a reset of org.globus.net.PortRange.ports[]. Ports are actually available but this array is never reset and get "No free ports available". tcp.port.range=4001,4005 #small range for testing

I can make the change to reset this and again call the getFreePort to restart the values. WDYT?

rsandhu1 commented 10 years ago

ServerSocket close is not called. PrServerSocket and other socket has close functions have close and ports are set to UNUSED. I will take a look how to call this and close ServerSocket.