?
Solved

Solaris Sockets ?

Posted on 1997-04-30
4
Medium Priority
?
298 Views
Last Modified: 2013-12-05
I am working on a client server project using AF_INET sockets in Solaris 2.5.1.

I am constantly rebooting my servers, and such, and each time the address is left binded and I have to wait for the OS to free up the address. (I know it is my sloppy code doing this, that is on the list to be fixed) but in the meantime is there any way I can free these up myself?

Sorry, I can only offer 15pts, all I have left. How do I get more points anyways? I cannot answer any of the questions. (when I tried it said I had to be an expert)
0
Comment
Question by:wcarson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:wcarson
ID: 1250193
Edited text of question
0
 
LVL 1

Expert Comment

by:flisakow
ID: 1250194

Answering questions does not give you points to ask more
questions, you can get a free T-shirt after 20,000 expert
points or some such.

You can buy the points if you like, otherwise they collect
at 5pts/day.

Sorry I don't know the answer, I've had similar problems myself
but I eventually ended up fixing the program.
0
 
LVL 1

Expert Comment

by:flisakow
ID: 1250195

Answering questions does not give you points to ask more
questions, you can get a free T-shirt after 20,000 expert
points or some such.

You can buy the points if you like, otherwise they collect
at 5pts/day.

Sorry I don't know the answer, I've had similar problems myself
but I eventually ended up fixing the program.
0
 

Accepted Solution

by:
kannan042597 earned 20 total points
ID: 1250196
This is not a problem and its only a feature of TCP/IP.  When a program binds an address to a port and after quitting the program it you try to restart the same with the same address and port number the TCP/IP stack will report an error saying that the address is already in use.  This is because of the 2 * MSL timer value. ( which is general 2 * 2 = 4 minutes ).  This way the TCP/IP stack avoids any delayed data to that particular socket wrongly arriving to the new program.  You can avoid this error by tuning the TCP/IP stack using the ndd program.  see the man pages for ndd to set the MSL timer value.

regards
kannan.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question