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

Win32 anonymous pipe broken after first read

I'm creating a process and reading it's stdout and err via the win32 api. Problem is that after the first successfull read with ReadFile(), I'm always getting the broken pipe error (109) for the next one for the data left in the pipe. (so I only…
Superlokkus
  • 4,731
  • 1
  • 25
  • 57
0
votes
0 answers

Thread server broken pipe error

I have ThreadedSimpleServer. Now I want to test it with unittest. In test.py file I have class Test(unittest.TestCase). if __name__ == '__main__': # create service service = Service() # run service in a separate thread thread =…
Vladimir Fejsov
  • 579
  • 3
  • 7
  • 16
0
votes
2 answers

Copy (over a web API) is complete; I get a broken pipe anyway. How to solve it?

For one of my projects, I implement a Java 7 FileSystem over the Box API Java SDK (the new one). However, for downloading files, when you want to have a stream to the content, it only provides methods taking OutputStream as an argument;…
fge
  • 119,121
  • 33
  • 254
  • 329
0
votes
1 answer

multiprocessing broken pipe after a long time

I develop a crawler using multiprocessing model. which use multiprocessing.Queue to store url-infos which need to crawl , page contents which need to parse and something more;use multiprocessing.Event to control sub processes;use…
aassembly
  • 11
  • 1
  • 4
0
votes
1 answer

Broken pipe exception when one application tries to connect to another

We have a setup in which one application (coordinator) delegates task to another applications (worker) and they finish the task and push back the results over socket. It works fine but on one machine we are getting broken pipe error for most of the…
Ouney
  • 1,164
  • 1
  • 10
  • 22
0
votes
0 answers

OSX [Error 32] Broken pipe on python app

I am using mac osx 10.9 and python 2.7. Made app using py2app which is basically continuously checking for save time of a file. Monitoring any changes made in the file in a while loop with small sleep in each iteration. Process should not stop at…
imp
  • 1,967
  • 2
  • 28
  • 40
0
votes
1 answer

System.IO.Exception: Pipe is broken on client side

I have two windows applications and using named pipes to send and receive lists of data between them. With serialization/deserialization mechanism using BinaryFormatter class. Server: static void StartServer() { var server = new…
Andrei Karcheuski
  • 3,116
  • 3
  • 38
  • 39
0
votes
1 answer

Java IO Exception Broken Pipe when attempting to populate listview with data from Parse.com

I am creating an Android application that runs three fragments that contain one listview in each. currently, I am trying to populate one of the listviews with content from a table that I created on Parse.com. I followed this tutorial:…
Rbro112
  • 247
  • 1
  • 2
  • 9
0
votes
1 answer

What condition causes the Broken Pipe Error on the Other End?

I have a Client-Server app, sending Data from an Android Phone, to a Tablet - Phone calls, SMS, Battery condition etc. The Phone is the Client, the Tablet the Server, and both run Services, with Partial WakeLocks to keep them alive for long enough,…
Douglas Brett
  • 171
  • 3
  • 8
0
votes
1 answer

C subprocess from Python: sub.stdin.write IOError Broken Pipe

I am getting a Broken Pipe error when writing a large quantity of data very fast to a C subprocess. So I am running a c subprocess from a python script: process = subprocess.Popen("./gpiopwm", stdin=subprocess.PIPE) while True: …
theo-brown
  • 653
  • 10
  • 27
0
votes
0 answers

Why there's broken pipe in my dos.write(buffer, 0, bufferSize)?

I'm having a big problem in writing in my dos.write it gives me a broken pipe and I don't know how to fix it. Can anyone suggest the proper way of handling this type of error. I search to the web and says the problem is the connection but when I…
NewDroidDev
  • 1,656
  • 5
  • 19
  • 33
0
votes
1 answer

Signal received: SIGPIPE (Broken pipe)

I am creating a simple client/server multiplayer game on C++. So the client connects successfully, and when I'm trying to send smth. to it, I get this message from debugger "Signal received: SIGPIPE (Broken pipe)" Here is the code: Server: …
leoUA
  • 43
  • 6
0
votes
1 answer

Interpreting, Write failed: Broken pipe message for cli php script

I'm running a php script from ssh with the following command ./script.php & The script is a has a loop in is supposed to loop about 800,000 times (so it takes a few days to run). However it is currently stopping a couple thousand loops into the…
Ben Pearce
  • 6,884
  • 18
  • 70
  • 127
0
votes
1 answer

Program crash in forking process with pipes

I'm writing a basic shell for course homework that will find a command in the given list of paths, and execute the command. It is also meant to handle pipes. However, when I fork a child process, I get a "Write error : Broken Pipe" message in gdb,…
0
votes
1 answer

Error downloading large files with Grails 1.3.7 using java.net.UrlConnection and outputstream

We are running a Grails 1.3.7 application on Tomcat 1.6 environment. A few days back some of our Pdf reports started giving us issues. The smaller reports, sized around 1MB or less, work but the bigger ones give us a 'java.net.SocketException:…
dipess
  • 33
  • 5
1 2 3
15
16