LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 12-07-2009, 07:48 AM   #1
raikme
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Detecting peer died in multi thread environment


Newbie to this site..

I have a process with multiple threads inside. In one of the threads(A), there is a TCP socket
connection towards a server. Data is being sent from the thread A towards this server. At one point of
time, server is down abruptly, which is detected by the thread A only after 15 minutes.
During this 15 minutes, the data sent by thread A, using unix command "send" are successful.

My queries

1. why, the "send" command doesn't fail immediately? Why it takes 15 minutes for this detection?
2. I tried to catch the signal SIGPIPE in thread A itself using signal function, but it doesn't work, which means "send"
command still is successfull?
3. Should the signals be catched at thread level or process level?

Could you please clarify.

Thanks!

Sorry, if this forum is not the apt place for this query.
 
Old 12-07-2009, 09:21 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Please conintue here:
http://www.linuxquestions.org/questi...d.php?t=773951
 
  


Closed Thread


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
Detecting peer died in multi thread environment raikme Linux - Networking 4 12-09-2009 12:04 AM
Loadbalancer: telnetd: ttloop: peer died: EOF Muddoll Linux - Enterprise 0 11-18-2008 05:10 AM
You are subscribed to this thread Connection reset by peer (S: vsftpd, C: gftp) baosheng Linux - Networking 1 05-13-2006 11:18 AM
Using a multi-boot box in a simple peer-to-peer network Woodsman Slackware 5 11-22-2005 09:35 PM
multi-thread VS multi-process ltcstyle Programming 3 12-04-2004 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

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