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

OCaml - Fatal error: exception Sys_error("Broken pipe") when using `| head` on output containing many lines

I have text file with many lines. I want to write a simple OCaml program that will process this file line by line and maybe print the line. For writing this program, I first created a smaller file, with fewer lines - so that program will finish…
gautamc
  • 423
  • 4
  • 7
1
vote
2 answers

Detecting broken pipe in Solaris send() call

In solaris how to detect broken socket in send() call? i dont want to use signal. i tried SO_NOSIGPIPE and MSG_NOSIGNAL but both are not available in Solaris and my program is getting killed with "broken pipe" error. Is there any way to detect…
Adil
  • 2,418
  • 7
  • 34
  • 38
1
vote
1 answer

How to solve Broken Pipe in Java?

I faced Broken Pipe Exception while read file from my folder directory. Please go through my following code... FileInputStream inputStream = new FileInputStream(file); ServletOutputStream outputStream = response.getOutputStream(); …
1
vote
1 answer

How to make sure the SocketChannel is really connected when using NIO?

I'm working on a NIO client program on Android, Basically it functions well, but when the network is not avaliable(WIFI is disabled, etc), I have no idea how to distinguish the socket is 'really' connected, SocketChannel.finishConnect() always…
Paparika
  • 137
  • 1
  • 12
1
vote
1 answer

How many number of android devices can gradle android plugin support?

I have added 5 devices to my jenkins slave and am getting a broken pipe error for gradle install task. com.android.ddmlib.InstallException: Broken pipe I set the ANDROID_SERIAL var to direct the gradle to a particular device for gradle install.…
1
vote
1 answer

HTTURLConnection setFixedLengthStreamingMode leads to SSL broken pipe exception

I am trying to upload a file to a REST API from Egnyte If I don't use setFixedLengthStreamingMode(...) the file is uploaded without getting exceptions, when I use setFixedLengthStreamingMode(...) I get once in while a IO/SSL Exception -> Broken…
David
  • 3,971
  • 1
  • 26
  • 65
1
vote
0 answers

Android Client to .NET server side results in broken pipe

Client side code is in android. Server side code in .NET. I am getting a broken pipe among the errors. What can be done in this respect? Client Side Code - MainActivity.java package com.example.imageupload; import java.io.File; import…
1
vote
0 answers

Rails crash (Exception `Errno::EPIPE' - Broken pipe)

I my Rails servers crashes few times a day and I don't know what is the reason. This is what I get in logs when debug mode is turned on: [19/Aug/2013 11:28:50] "GET /apps/guess-the-model?q=pending HTTP/1.1" 200 - 141.0851 Exception `Errno::EPIPE' at…
ciembor
  • 7,189
  • 13
  • 59
  • 100
1
vote
1 answer

Python Broken Pipe

I have completed a code in Python for my summer internship. Here is the code: from numpy import loadtxt, abs, mean, float64 def Sum_radii(particle1, particle2): #Sum of radii - to be compared with distance summ =…
Blaise Delaney
  • 321
  • 1
  • 6
  • 15
1
vote
1 answer

Broken pipe in Linux(IPC)

I have written a basic sample program for pipe (linux - IPC) but i am getting broken pipe as output. Below is the code : #include #include #include #include"iostream" using namespace std; int main() { …
Astro - Amit
  • 767
  • 3
  • 15
  • 36
1
vote
0 answers

org.apache.thrift~ java.net.SocketException:broken pipe in Cassandra keyspace

I need to create a keyspace using Cassandra-CLI, but when I execute the command create keyspace "name" with strategy_options={replication_factor:1}; I get the message: org.apache.thrift.transport.TTransportException The first time, the second and…
1
vote
0 answers

Hadoop C++ Pipes, SocketException: Broken pipe

I am running a Hadoop Pipes job on Ubuntu 12.04 but am getting a Broken Pipe error when the reducer kicks in: 2013-04-17 10:40:38,088 INFO org.apache.hadoop.mapred.ReduceTask: Merging 0 segments, 0 bytes from memory into reduce 2013-04-17…
jaesanx
  • 195
  • 1
  • 13
1
vote
1 answer

Node.js Write failed: Broken pipe after stdout

When ever I run my node.js server I only get one chance to test my code. Then there after i get a write failed: broken pipe this is really annoying as i have to re log back in and and run the server again.. I don't care for forever node at the…
1
vote
1 answer

Python 3: TCP Client/Server Broken Pipe Error

I'm writing a TCP client/server and I've been hitting this broken pip error in the latter part of the code. I have been unable to isolate the cause due to a limited understanding of Python and socket programming and I am, therefore, unable to fix…
Metagen
  • 41
  • 1
  • 2
  • 9
1
vote
1 answer

java.net.SocketException: Broken pipe while uploading file to restful wcf(web service)?

HI i am getting broken piper error Logs are: 06-27 12:45:49.144: E/Debug(2526): error: Broken pipe 06-27 12:45:49.144: E/Debug(2526): java.net.SocketException: Broken pipe 06-27 12:45:49.144: E/Debug(2526): at…
Rajiv yadav
  • 823
  • 8
  • 24