Questions tagged [broken-pipe]

Broken pipe is a general term for when a process is unable to output to a socket or pipe due to no process reading from the other end of the pipe.

Broken pipe is a condition in programming where a process is unable to direct output to either a pipe or socket due to the connection being closed by a peer.

Every library function that returns this error code also generates a SIGPIPE signal; this signal terminates the program if not handled or blocked.

More info in the libc documentation

238 questions
3
votes
0 answers

Avoid broken pipe with subprocess.Popen and multiple distinct requests

I'm working on a multi-thread python script where I have a dedicated thread in charge of executing some shell commands without re-opening a brand new zsh shell but keeping the same session alive. The main thread puts the to-be-executed commands in a…
codeJack
  • 2,423
  • 5
  • 24
  • 31
3
votes
0 answers

Axis2 Web Service client TimeOut Configurations

I have a web service which takes almost 5 minutes to run. What I observed is my axis2 version 1.4 client doesnt wait for that much time and returns back. Thus my web service throws Broken Pipe. I have set all below Options for timeout to 10…
Aryan
  • 1,767
  • 2
  • 22
  • 39
2
votes
2 answers

Client Not Receiving Data in Python

I am very new to Python and have a basic question, can a client side of a network socket connection make receive data? In my question, the client is the one who initiates the connection, which is probably obvious but I wanted to be clear. I ask…
tpar44
  • 1,431
  • 4
  • 22
  • 35
2
votes
1 answer

"client_loop: send disconnect: Broken pipe" while running long experiments with bash script

I am connected through ssh to a linux virtual machine to run long experiments (3 hours per program) for academic research. When my computer is not used I get the error message: client_loop: send disconnect: Broken pipe. I have looked at this forum…
Thomas Mc Donald
  • 407
  • 1
  • 5
  • 11
2
votes
1 answer

How to constantly receive messages from users on socket?

I created a messenger using Python Socket, when I use two clients, for example, when one user leaves the chat, the other user can send 1-2 more messages and then the server stops receiving messages from other users, ie there is a known error…
2
votes
1 answer

BrokenPipeError on socket

I created a messenger using Python Socket, when I use two clients, for example, when one user leaves the chat, the second user can send 1-2 more messages and after that the server stops accepting messages from other users, that is there is a…
John West
  • 43
  • 4
2
votes
0 answers

SpringBoot application throwing "Broken Pipe" time to time

I have a springboot application that consume a xml and its running inside a docker container. When I do a load testing for that at some point its throwing "Broken pipe" error. I'm increasing traffic by 20% continuously with 5min gap (100% traffic is…
Dui Samarasinghe
  • 247
  • 2
  • 10
2
votes
0 answers

BrokenPipeError: [Errno 32] Broken pipe, python

So Ive been working on this script for sometime now, and no matter what I do I keep getting 'BrokenPipeError: [Errno 32] Broken pipe' I have no idea what I'm doing wrong, It should be just a simple pipe from the sub process, to the socket but never…
Py_goy
  • 21
  • 1
2
votes
1 answer

Ansible ssh error: mux_client_read_packet: read header failed: Broken pipe Received exit status from master

I have a script /wd/remoteuser/stopALL.sh on remotehost i.e 10.0.0.211 and takes 3 seconds to complete execution and has full permission 775 for remoteuser. Note: /wd/remoteuser/stopALL.sh does not exist on the host where ansible runs. I wish to…
Ashar
  • 2,942
  • 10
  • 58
  • 122
2
votes
0 answers

broken-pipe sometimes happens. This error is repeated (infinitely repeated) and then tomcat reboots

I'm using FreeBSD + spring Framework + Tomcat. broken-pipe sometimes happens. This error is repeated (infinitely repeated) and then tomcat reboots.   Is the tomcat setting a problem? Or is there another problem? The data is retrieved through an AJax…
이샤논
  • 21
  • 1
2
votes
0 answers

How to fix 'broken pipe' error when trying to write from NamedPipeClientStream to NamedPipeServerStream

I have a program, that has to comunicate with another program that is called from the first. I have managed to send the required data from the first to the second program using NamedPipes. When the second program closes, i need to send some data…
Myrkjartan
  • 166
  • 3
  • 16
2
votes
0 answers

Python multiprocessing failure [Errno 32] Broken pipe

I'm running a python scraper on my server. It needs to scrape lots of urls, so I wanted to make it faster and decided to use multiprocessing. The problem is, that the scraping process takes a really long time and so my borwser connection times out…
acincognito
  • 1,595
  • 1
  • 13
  • 24
2
votes
0 answers

Trouble writing to HttpServletResponse ServletOutputStream

I have a Spring application running on Tomcat 8.5 that queries our database, generates a PDF file, and then serves it to the user via the ServletOutputStream: ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); …
DFL
  • 173
  • 1
  • 14
2
votes
1 answer

C++: Calling sendmail from pthread results in Broken Pipe

I'm trying to send an e-mail with sendmail in a separate pthread. This code works 99.9% of the time. void* emailClientThreadFct(void* emailClientPtr) { EmailClient* emailClient = static_cast(emailClientPtr); try { …
Luchio
  • 53
  • 6
2
votes
2 answers

C: Not detecting EOF in pipe from parent to child process

I'm taking a programming course focusing on C, and we're going through pipes and processes at the moment. An in class activity was assigned where I have to have a parent create a child to print input that is piped from the parent. I can get the…
totemc
  • 23
  • 6