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
1
vote
2 answers

Why does ruby except when writing to std::error or std::out when the session is gone?

I have written a program that can run for 16 or 20 hours on a linux box with some form of redhat OS. It runs fine if I start it up with nohup or redirect output to a file, but when a user starts it up, sends it to the background and logs out, it…
user632657
  • 473
  • 3
  • 10
1
vote
0 answers

Broken pipe error in Python hosted webserver

I am hosting my server on python and have written the following code, import BaseHTTPServer, SimpleHTTPServer import ssl webServer = BaseHTTPServer.HTTPServer(('0.0.0.0', port), SimpleHTTPServer.SimpleHTTPRequestHandler) webServer.socket…
Aditya yadav
  • 119
  • 1
  • 7
1
vote
0 answers

Why does PyInstaller throw a Broken Pipe Error?

all! I wrote a python script that imports PySimpleGui and OS. I put the 3 py's into my folder and ran pyinstaller --onefile -w processnc.py . At first it ran fine and I got my executable, which worked fine, but had some complications and I ended up…
aaron
  • 11
  • 1
1
vote
0 answers

Pylint multithreaded run passes, tests fail

I have some strange Pytest behaviour I can't explain and was wondering if someone had already seen this before. So we're running Pytest with 4 treads - pytest -n 4 tests/e2e. Now, sometimes, it runs the same test on 2 different workers, like…
1
vote
1 answer

Broken Pipe Error when writing to stdin of a python application from a go application

I have implemented a worker pool to submit my jobs to the python script. func NewWorker(index int, workerConfig config.AppConfig, logger log.PrefixedLogger) error { var worker entities.Worker worker.ID = index worker.Config =…
mster3313
  • 33
  • 5
1
vote
1 answer

I screwed up my application to iphone device installer in xcode please help?

I had a missing file error that led me to a solution telling me this line of code would be my savior sudo ln -s ../../4.3\ \(8L1\)/Symbols/Developer/ Developer Instead this caused me a much greater problem and now I cannot run my application on my…
HarrisonJackson
  • 370
  • 1
  • 6
1
vote
0 answers

java.net.SocketException: Broken pipe (Write failed) when upgrading services from Java 8 to Java 11

I have a Java Spring Boot microservice which uploads documents to a Document Management System (Documentum) by calling a REST interface (Documentum REST). Spring Boot Version is 2.1.5.RELEASE, Spring Cloud Version is Greenwich.RELEASE and the…
Jon H
  • 394
  • 3
  • 17
1
vote
0 answers

Grafana - Write: broken pipe

since the upgrade of grafana to 7.3.5 we have encountered “broken pipe” problems. The dashboards all put in error after a few hours of use, as seen below. "write tcp 127.0.0.1:59132->127.0.0.1:5432:write: broken pipe" Grafana is linked to a…
Thomas C
  • 11
  • 1
1
vote
0 answers

C# Httpresponse gives Unable to write data to the transport connection: Broken pipe

I have done this little piece of code on a console app, to stream a file or to simulate a stream of data over HTTP by chunk var musicFile = "music.mp3"; var imageFile = "image.mp3"; var prefixes = new…
M.Nemo
  • 33
  • 1
  • 4
1
vote
1 answer

encounter 'Broken pipe' error only while using step-by-step debug with GDB

There is unix-socket server written on PHP (but I don't think it has something to with it). Client side is written on c++ and based on boost::asio library. When I launch program normally - everything works fine, except one (not related to socket…
Ibadinov
  • 21
  • 4
1
vote
1 answer

Python3 - [Errno 32] Broken Pipe while using sockets

I have the following code for the server: import socket import threading def handle_client(client_socket): request = client_socket.recv(1024) print ("[*] Received: %s" % request) client_socket.send("ACK!".encode("utf-8")) …
Lorenzo
  • 111
  • 3
  • 10
1
vote
1 answer

Python 3 multiprocess scaper: BrokenPipeError (Broken pipe)

I have a Python 3.7.4 script using multiprocessing & threading for scraping an API. It uses a GET request to get the stats of a hashtag and then on that page, gathers more hashtags to add to the list be scraped from the API. It works for several…
xendi
  • 2,332
  • 5
  • 40
  • 64
1
vote
1 answer

Python File Upload to Google Cloud Storage Bucket return Broken Pipe Error

I'm trying to upload a file to Google cloud storage Bucket using Python.It was working fine before but suddenly returning an error. Here's my code: from views.py: def perform_upload(video, thumbnail): print('vdieo name is: {}'.format(video)) …
1
vote
0 answers

Send files with HTTP

The company where I work send files using differents protocol but since few times we have a problem using HTTP protocol to a client (it's working in my VM). @Override public void send(final String nf, final InputStream is) throws…
Emeric
  • 6,315
  • 2
  • 41
  • 54
1
vote
2 answers

git pre-push causes broken pipe error

I have a large pre-hook script I maintain to run checks on code, a build, run regression, and email a set of release notes. It has been working for a while, but some recent changes were made and now when we do a git push it results in a "Broken…
Jay Doobie
  • 11
  • 3