I have a hook which needs some minutes to finish.
I get this error during a git client push to Gogs:
2019/10/23 19:34:08 [ERROR] [.../routes/repo/http.go:261 serviceRPC()] HTTP.serviceRPC: fail to serve RPC 'receive-pack': signal: broken pipe -
The client output this:
error: RPC failed; HTTP 404 curl 22 The requested URL returned error: 404 Not Found fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly
The hooks maximum possible runtime in my installation is around 50 seconds. I think there is some overall timeout of 60 seconds.
- Is there any setting to increase this timeout?
Then I discovered that the remote-output of the hooks is not sent to client before the hook has finished. So somewhere the complete output is stored in memory. I think this should be streamed.
- But I don’t know if this is caused by git API or could be changed by Gogs?!
Should I do a bug report?