Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-09-2016, 10:11 PM   #1
LQ Newbie
Registered: Nov 2015
Posts: 6

Rep: Reputation: Disabled
TCP socket states after kernel soft reboot

Hi All,
In linux, we are running an application which creates a socket on some random port(55572).

After few kernel soft reboots we got a bind error on socket creation of an application(address already in use) and the application fails to start.

We are trying the understand the possible reasons for bind failure.

Whether TCP socket states will be persisted after kernel reboots? It does not make sense. But I am trying to understand the reason.
Also we have used sockereuseaddr in socket option.

Any suggestions/ideas are truly appreciated
Old 01-09-2016, 11:54 PM   #2
Registered: Nov 2012
Posts: 204

Rep: Reputation: 68
When you say the port is random, is it really random or is it always 55572? If the port number is randomly generated then it could be trying to use the same port as another service.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
program to listen on TCP socket and start some program with I/O redirected to socket leniviy Linux - Software 4 08-12-2013 05:51 AM
TCP Socket Buffer Issues - Kernel Tuning simpsop Linux - Networking 0 02-14-2013 03:45 AM
socket programming in KERNEL (TCP/IP) omkarlagu Programming 8 07-04-2011 01:42 AM
Memory check on soft reboot big_manel Linux - General 1 04-17-2006 03:19 PM
plz help regarding TCP/IP socket progamming in LINUX kernel omkarlagu Programming 0 01-20-2006 08:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration