LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2018, 05:15 AM   #1
jyotirling
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
TCP Socket : Broken Pipe


Dear All,
I have wrote simple TCP/IP client/server prog. Server is receiving data. After receiving some packets, it comes out by giving error "broken pipe". I was looking in detail by using wireshark utility and found that every thing was normal. Suddenly server sent "Finish" request ie. it set "Fin" flag while sending Acknowledgement of data received. After that it also received some data packets and remained sending Reset request to the client.

I am not able to understand why it suddenly sent Finish request to client suddenly, without any error in data or connection. Please guide me what is the reason & what will be the solution of it.
 
Old 05-21-2018, 09:52 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
just to inform you: without seeing the code we cannot say anything.
 
Old 05-23-2018, 02:30 AM   #3
LinuxEnthu
LQ Newbie
 
Registered: May 2018
Posts: 2

Rep: Reputation: Disabled
Run your program under "strace" it will give you more insights about the broken pipe.
Usage : strace -f -s 4096 <your program>
For more info on strace see this.
 
  


Reply



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
Broken Pipe problem in TCP/IP communication vishal-isro Programming 1 09-11-2012 01:47 AM
Broken pipe error in TCP/IP server program vishal-isro Linux - Networking 1 09-11-2012 01:45 AM
python: socket broadcast produces a broken pipe eantoranz Programming 2 04-14-2009 08:24 AM
kernel_sendmsg function send tcp package would return broken pipe error asert Linux - Kernel 1 06-01-2008 04:07 PM
Stop perl socket server broken pipe or exiting son_t Programming 1 10-25-2007 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:16 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