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
6
votes
1 answer

Celery worker connection with Rabbitmq met broken pipe error In gevent or eventlet Mode

I run to issue that Celery worker connection with Rabbitmq met broken pipe error IN Gevent Mode. While no problem when Celery worker work in Process pool mode (without gevent without monkey patch). After that, Celery workers will not get task…
Jcyrss
  • 1,513
  • 3
  • 19
  • 31
6
votes
1 answer

Getting broken pipe when passing mysql connection to a python thread

I'm trying to pass a mysql connection to a thread in python. If i do the initialization of the mysql inside the worker class, there is no error. However, it might be costly for the connection so I tried just passing the mysql connection from the…
Ninz
  • 231
  • 3
  • 11
6
votes
1 answer

ALSA: cannot recovery from underrun, prepare failed: Broken pipe

I'm writing a program that reads from two mono ALSA devices and writes them to one stereo ALSA device. I use three threads and ping-pong buffer to manage them. Two reading threads and one writing threads. Their configurations are as follows: //…
Peter
  • 331
  • 3
  • 11
6
votes
1 answer

What's the difference between Broken Pipe and Connection reset by peer?

During my daily job, I need to keep connecting to sever through SSH, and I usually got two different kinds of errors, the first one is "Broken Pipe" while the second one is "Connection reset by peer". I'm wondering what's the difference between…
Void Main
  • 2,241
  • 3
  • 27
  • 36
6
votes
2 answers

What is the reason for Broken Pipe on Unix Domain Sockets?

I have a server application which received requests and forwards them on a Unix Domain Socket. This works perfectly under reasonable usage but when I am doing some load tests with a few thousand requests I am getting a Broken Pipe error. I am using…
jbx
  • 21,365
  • 18
  • 90
  • 144
5
votes
0 answers

Broken pipe while training Keras model

I'm training a few Keras models one after the other on a remote server using userdocker. I connect to the server through ssh and let them run on different Screens. To speed things up I had the models train on 5 GPUs, so that 5 different models train…
Girauder
  • 165
  • 1
  • 12
5
votes
3 answers

Peewee MySQL server has gone away

I use flask and peewee. Sometimes peewee throws this error MySQL server has gone away (error(32, 'Broken pipe')) Peewee database connection db = PooledMySQLDatabase(database,**{ "passwd": password, "user": user, …
Alexander
  • 1,720
  • 4
  • 22
  • 40
5
votes
2 answers

java socket outputstream and broken pipe

I have to send a dynamic buffer size to the socket stream. It works correctly, but when I try to send multiple buffers with a size bigger than int my_buffer_size =18 * 1024; (this is an indicative value) I get the error (for some…
J.R.
  • 2,335
  • 2
  • 19
  • 21
5
votes
3 answers

Broken pipe no longer ends programs?

When you pipe two process and kill the one at the "output" of the pipe, the first process used to receive the "Broken Pipe" signal, which usually terminated it aswell. E.g. running $> do_something_intensive | less and then exiting less used to…
PypeBros
  • 2,607
  • 24
  • 37
4
votes
1 answer

Why does this socket connection only allow 1 send and receive?

Background I have a simple socket server setup that I am trying to allow simultaneous connections to and echo back the data. The client side launches several threads each making its own connection to the server. This works fine for the…
Adam Lewis
  • 7,017
  • 7
  • 44
  • 62
4
votes
0 answers

Go HTTP POST request with big JSON, sometimes "write: broken pipe"

I have a HTTP client(fasthttp) and a HTTP server(gin). When sending big POST request(Content-Length 70K-100K, Content-Type: application/json), sometimes the client encounters error "write: broken pipe". With ngrep, I found the server returns TCP…
jianfyun
  • 71
  • 1
  • 4
4
votes
2 answers

spring boot redis operation throw broken pipe error

We use redis in spring boot project. After running a period of time, the redis operation MAY throw a broken pipe error, but sometimes it will succeed. Restarting the service will resolve this problem, but it's not a good idea. I can't tell the…
Geln Yang
  • 902
  • 2
  • 20
  • 36
4
votes
0 answers

'IOException: Broken Pipe' thrown by Bluetooth output stream on write (Android)

I am working on an Android application, which talks to a Bluetooth device over a OutputStream. This works fine, so long as the phone has an internet connection. However, if the phone looses it's internet connection, writing to said Output stream…
slayerpjo
  • 173
  • 1
  • 11
4
votes
1 answer

Broken-pipe Error Python subprocess

I'm trying to launch several bash routines from a GUI based software. The problem I'm facing is a piping issue. Here the test bash-script (bashScriptTest.sh): #!/bin/bash #---------- Working ls | sort | grep d > testFile.txt cat…
Mat
  • 45
  • 1
  • 7
4
votes
1 answer

paramiko.ssh_exception.ProxyCommandFailure: 'Broken pipe')

I am trying to ssh tunnel from PC --> server1 ---> server2 ----> switch1 This is possible through a regular terminal with a simple: ssh switch1 it references my ssh_config which reads: Host server1 user bill Hostname server1 ForwardAgent…
Tj Nielsen
  • 41
  • 1
  • 3
1 2
3
15 16