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
4
votes
2 answers

Socket: send() function returned 'Broken Pipe' error

I am new to socket programming, I am trying to send some packets to server using the send() function in C++, but I am always getting a 'Broken pipe' error while sending packets to the server. Could you please help me for the below points? When the…
K.H.Nagaradder
  • 71
  • 1
  • 1
  • 5
4
votes
0 answers

IOException: broken pipe when sending file from android device to PC via Bluetooth

I'm working on a project where I try to send any file from my phone to my PC. I made the following steps and they all work well: Find out available device to connect Pairing the Bluetooth device Connecting to PC using BluetoothSocket. The problem…
ming li
  • 41
  • 2
4
votes
2 answers

Python amqp broken pipe error

Quick question: Do I need to pray for not having two independent applications use same channel at the same time while communicating RabbitMQ in order to prevent "Broken Pipe Error"? (Or is threading different from having two or more independent…
ceremcem
  • 3,900
  • 4
  • 28
  • 66
4
votes
0 answers

Websocket server can't send message to client and error is broken pipe

recently I use python write websocket server, handshake is OK, and the server can accept message from client, but so wired, when the server send message to client, the server will encounter an error like broken pipe, I check the code thoroughly and…
4
votes
2 answers

Django error: [Errno 32] Broken pipe

sometimes on my site when I'm working on my local version, I get this error in my console : error: [Errno 32] Broken pipe Does anyone have an idea to where it come from and how to prevent this because it's slowing down the site a lot.
flo bee
  • 830
  • 2
  • 11
  • 20
4
votes
3 answers

What happens to a process in an EC2 instance when I get a 'Broken Pipe' error on ssh?

I am using some EC2 instances to run some large jobs I can not run locally. The issue I am seeing is that after a while (X hours since the process started) my connection on my shell gives me a broken pipe…
JordanBelf
  • 3,208
  • 9
  • 47
  • 80
3
votes
1 answer

How to handle Broken pipe errors with Flask/gunicorn?

I have a Flask API that is being run by gunicorn. To my knowledge and this SO link gunicorn should be handling any Broken pipe errors automatically for me which is why this error is confusing to me. Whenever the user hits the API endpoint a call to…
Josh Zwiebel
  • 883
  • 1
  • 9
  • 30
3
votes
1 answer

apt --fix-broken install does not work, package manager broken after installing wine-stable

after uninstalling old version of wine-1.8 and installing it again, I encountered an ERROR in package manager for Broken packages: Preparing to unpack .../libwine_3.0-1ubuntu1_amd64.deb ... Unpacking libwine:amd64 (3.0-1ubuntu1) ... dpkg: error…
Behzad Sezari
  • 728
  • 8
  • 11
3
votes
0 answers

Subprocess pipe broken only when running a script

I'm trying to test a small server application using python. The application is working a bit like a remote shell - it takes an input and outputs some data based on the input. My initial try looks like this: #!/usr/bin/python3 import subprocess nc =…
ja2142
  • 892
  • 15
  • 23
3
votes
0 answers

Android Studio - Error Installing APK + Broken Pipe Error (on Mac)

So I am running Android Studio 3.3 on my Mac that's running High Sierra v. 10.13.4. My code compiles fine and runs on the emulator, but when I try to plug in my 2 Samsung Tab A's that I'm working with, Android Studio throws this error during the…
3
votes
1 answer

Python: Broken Pipe Error For PyNomo Example (in function Nomographer)

I am using pycharm on Python 2.7. I have installed PyNomo. I am trying to run this small example from the official site. Code is available on the link, I have simply copy pasted it. I get the following error: Aligning with tag A Traceback (most…
dc95
  • 1,319
  • 1
  • 22
  • 44
3
votes
0 answers

ffmpeg av_interleaved_write_frame(): Broken pipe under windows

I am using ffmpeg to convert original media file to rawvideo yuv format, ouputed the yuv to pipe, then my command tool receive the raw yuv as input, do some processing. e.g: D:\huang_xuezhong\build_win32_VDNAGen>ffmpeg -i test.mkv -c:v rawvideo -s…
Allen
  • 33
  • 1
  • 6
3
votes
1 answer

What kind of exception does Python 3.2 throw in case of [Errno 32] Broken pipe

I try to patch a library to catch [Errno 32] Broken pipe. The library is coded to run in Python 2 and Python 3. In Python 2 the exception is a socket.error: [Errno 32] Broken pipe in Python >= 3.3 it is a BrokenPipeError: [Errno 32] Broken pipe In…
speendo
  • 13,045
  • 22
  • 71
  • 107
3
votes
2 answers

Filter out broken pipe errors from template execution

This is similar to Filter out broken pipe errors , but with complications - when a user presses the "stop" button on their browser while a template is executing (html/template.Execute or text/template.Execute), a broken pipe error occurs. However, I…
Darrrrrren
  • 5,968
  • 5
  • 34
  • 51
3
votes
1 answer

java.io.IOException: Broken pipe on increasing number of mappers/reducers, a lot

I am running MapReduce job on a hadoop cluster of 6 nodes with 4 map tasks and 10 reduce tasks configured. Mapper/Reducer fails a lot on increasing number of map/reduce tasks as below, I encounter the following error: stderr…
user765675