As others have mentioned, doing a < netstat -na |grep THETROUBLEDPORT >
will show what state is the troubled port in. That should give a clue
about what is going wrong. Normaly processes on both sides of the socket
need to do close() before exiting. If one side of the communication
fails to close the socket the problem that you mentioned will happen and
the socket will go into a wait state, making the port unavailable for
sometime. For example if you attempt to read() / write() the socket and
exit on failure without issuing close() this could happen.
Emeel.

"Estabridis, Janet P" wrote:
> 
>  DOES ANYONE HAVE ANY COMMENTS ON THIS ?
> Thanks -- Janet
> 
> -----Original Message-----
> From: Estabridis, Janet P
> To: '[EMAIL PROTECTED]'
> Sent: 7/13/01 7:20 AM
> Subject: [rtl] Off Topic - Ethernet releasing port addresses
> 
> Hi,
> 
> I'm using RTLV2.3 and kernel 2.2.14.  I will most likely upgrade
> everything
> to the newer versions, but not until the test system is accepted by the
> customer and that could be 3 months from now.
> 
> I have miniRTL on 8 embedded machines 2 other Linux PC's and 3 Windows
> machines on a local network.  I have both real-time modules running on
> my
> linux PC's and user space applications.  Specifically, the user space
> applications send information to the Windows machines via ethernet
> socket
> code.  I have a set of defined port numbers that the information uses.
> 
> My problem is that sometimes when I know I have closed the code out and
> I
> restart it I get the message
> 
> Unable to establish a port Connection:  Address already in use.
> 
> And sometimes I have to re-boot a linux computer to get rid of this
> message
> so I can run my code.  It might be something I am doing but I have been
> seeing this for months now and I haven't come up with a solution.
> 
> Any help, ideas, would be greatly appreciated..
> 
> ----- End of forwarded message from [EMAIL PROTECTED] -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
> 
> ----- End of forwarded message from [EMAIL PROTECTED] -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to