broken-pipe

Broken Pipe Exception on Grails App

别等时光非礼了梦想. 提交于 2019-12-02 04:22:28
I developed an application on Grails 2.4.4 using jdk 1.7 and MySQL Workbench 6.3. It works for some time, but after some hours of the deployment i try to log in, it stops working and throws the exception "java.net.SocketException: Broken pipe". 2016-10-24 09:40:53,599 [http-nio-8080-exec-12] ERROR errors.GrailsExceptionResolver - SocketException occurred when processing request: [POST] /login/autenticacao Broken pipe. Stacktrace follows: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write

ffmpeg av_interleaved_write_frame(): Broken pipe under windows

浪尽此生 提交于 2019-12-02 00:08:57
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 320x240 -f rawvideo - | my_tool -o output every time, when run the command, ffmpeg will dump this av_interleaved_write_frame(): Broken pipe error msg: Output #0, rawvideo, to 'pipe:': Metadata: encoder : Lavf56.4.101 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 120:91 DAR 160:91], q=2-31, 200 kb/s, 24 fps, 24 tbn, 24 tbc

Filter out broken pipe errors

戏子无情 提交于 2019-12-01 15:58:50
I'm getting an error returned from an io.Copy call, to which I've passed a socket ( TCPConn ) as the destination. It's expected that the remote host will simply drop the connection when they've had enough, and I'm not receiving anything from them. When the drop occurs, I get this error: write tcp 192.168.26.5:21277: broken pipe But all I have is an error interface. How can I differentiate broken pipe errors from other kinds of error? if err.Errno == EPIPE... The broken pipe error is defined in the syscall package. You can use the equality operator to compare the error to the one in syscall.

Filter out broken pipe errors

萝らか妹 提交于 2019-12-01 14:32:45
问题 I'm getting an error returned from an io.Copy call, to which I've passed a socket ( TCPConn ) as the destination. It's expected that the remote host will simply drop the connection when they've had enough, and I'm not receiving anything from them. When the drop occurs, I get this error: write tcp 192.168.26.5:21277: broken pipe But all I have is an error interface. How can I differentiate broken pipe errors from other kinds of error? if err.Errno == EPIPE... 回答1: The broken pipe error is

How to prevent BrokenPipeError when doing a flush in Python?

戏子无情 提交于 2019-11-30 06:01:06
Question: Is there a way to use flush=True for the print() function without getting the BrokenPipeError ? I have a script pipe.py : for i in range(4000): print(i) I call it like this from a Unix command line: python3 pipe.py | head -n3000 And it returns: 0 1 2 So does this script: import sys for i in range(4000): print(i) sys.stdout.flush() However, when I run this script and pipe it to head -n3000 : for i in range(4000): print(i, flush=True) Then I get this error: print(i, flush=True) BrokenPipeError: [Errno 32] Broken pipe Exception BrokenPipeError: BrokenPipeError(32, 'Broken pipe') in <_io

Broken pipe when pushing to git repository

 ̄綄美尐妖づ 提交于 2019-11-29 23:54:58
I'm trying to push for the first time a code to my git repository but i get the following error: Counting objects: 222026, done. Compressing objects: 100% (208850/208850), done. Write failed: Broken pipe222026) error: pack-objects died of signal 13 fatal: The remote end hung up unexpectedly error: failed to push some refs to 'ssh://git@bitbucket.org/<...>' I tried to increase the http buffer size ( git config http.postBuffer 524288000 ), I tried to git repack , but it did not work. I was able to push a very similar size code to another repository (it was not working like this one, but after

Airflow Logs BrokenPipeException

笑着哭i 提交于 2019-11-29 13:22:27
I'm using a clustered Airflow environment where I have four AWS ec2-instances for the servers. ec2-instances Server 1: Webserver, Scheduler, Redis Queue, PostgreSQL Database Server 2: Webserver Server 3: Worker Server 4: Worker My setup has been working perfectly fine for three months now but sporadically about once a week I get a Broken Pipe Exception when Airflow is attempting to log something. *** Log file isn't local. *** Fetching here: http://ip-1-2-3-4:8793/log/foobar/task_1/2018-07-13T00:00:00/1.log [2018-07-16 00:00:15,521] {cli.py:374} INFO - Running on host ip-1-2-3-4 [2018-07-16 00

How can I set Socket write timout in java?

≯℡__Kan透↙ 提交于 2019-11-29 11:59:59
I have a problem with handling socket in java. I am running a TCP server with multiple client connections. For performance reason, I used a simple thread pool to handle packets. Please see code below public enum LazyWorkCenter { instance; LazyWorkCenter() { lazyWorker = new NamedThreadPoolExecutor(3,3, 0L,TimeUnit.MILLISECONDS, "LazyWorker"); } private ExecutorService lazyWorker ; public void executeLazy(Runnable lazyTask) { lazyWorker.execute(lazyTask); } } public class TcpServerForClient { DataOutputStream out = null; DataInputStream in = null; public void onConnect(ServerSocket socket)

Python BaseHTTPServer, how do I catch/trap “broken pipe” errors?

让人想犯罪 __ 提交于 2019-11-29 03:44:10
I build a short url translator engine in Python, and I'm seeing a TON of "broken pipe" errors, and I'm curious how to trap it best when using the BaseHTTPServer classes. This isn't the entire code, but gives you an idea of what I'm doing so far: from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import memcache class clientThread(BaseHTTPRequestHandler): def do_GET(self): content = None http_code,response_txt,long_url = \ self.ag_trans_url(self.path,content,'GET') self.http_output( http_code, response_txt, long_url ) return def http_output(self,http_code,response_txt,long_url): self

How to prevent BrokenPipeError when doing a flush in Python?

落爺英雄遲暮 提交于 2019-11-29 01:50:15
问题 Question: Is there a way to use flush=True for the print() function without getting the BrokenPipeError? I have a script pipe.py : for i in range(4000): print(i) I call it like this from a Unix command line: python3 pipe.py | head -n3000 And it returns: 0 1 2 So does this script: import sys for i in range(4000): print(i) sys.stdout.flush() However, when I run this script and pipe it to head -n3000 : for i in range(4000): print(i, flush=True) Then I get this error: print(i, flush=True)