New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log/syslog: fails to reconnect or return error #6765
Labels
Comments
I have a simple patch available for this problem at Jimdo/periodicnoise@672a225 and even a very crude test available here Jimdo/periodicnoise@c670de2 which shows the hang due to hanging listeners quite nicely. I have this in production since about a month without any problems. Are you guys interested in my polishing this up? My problem in production there have been missing timeouts in the unix domain socket log listeners. |
I'm not able to reproduce this running on tip. My test environment: rsyslog (running on a separate host) nc (running on a separate host) go tip (changeset: 18948:94165b19719e) Ubuntu 13.10 Using the code from http://play.golang.org/p/ADb0RmfVYI with a slight modification to connect to a different host running rsyslog and nc I get the following behavior: When running rsyslog on a remote host: go run main.go 2014/01/27 02:41:39 sent msg: <nil> 2014/01/27 02:41:40 sent msg: <nil> 2014/01/27 02:41:41 sent msg: <nil> 2014/01/27 02:41:42 sent msg: <nil> 2014/01/27 02:41:43 sent msg: <nil> 2014/01/27 02:41:44 sent msg: <nil> 2014/01/27 02:41:45 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:46 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:47 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:48 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:49 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:50 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:51 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:52 sent msg: <nil> 2014/01/27 02:41:53 sent msg: <nil> 2014/01/27 02:41:54 sent msg: <nil> 2014/01/27 02:41:55 sent msg: <nil> 2014/01/27 02:41:56 sent msg: <nil> 2014/01/27 02:41:57 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:58 sent msg: dial tcp 192.168.12.151:514: connection refused 2014/01/27 02:41:59 sent msg: dial tcp 192.168.12.151:514: connection refused Starting and stopping the rsyslog server results in the expected behavior -- errors are generated when rsyslog is down and the connection is restored when rsyslog is restarted. I get the exact same results against the a remote host running nc -ls 514. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by phmmnd:
The text was updated successfully, but these errors were encountered: