Closed DavidGamba closed 6 years ago
the real Dial is call in a goroutine.
I don't use directly a net.Conn
but I use an interface that provide a Redial()
func.
I need to think for a way to provide some feed back.
I may have a solution … I will write it on monday.
I didn't forget…
I must correct 1 remaining error before pushing the code.
my misconception (exactly a forgotten TODO) is trivial here :
the coded solution is :
chan error
so you can catch any error in goroutine and decide what to do with themtwo panic()
remain in listener-unixgram.go
.
there is a new issue with unixgram
collector because, unixgram
doesn't support writev()
syscall (introduced with my rewrite).
I want to drop the unixgram
code but unixgram
are AF_UNIX Datagram (UDP equivalent) and some unix systems still need them in 2017 😤
if the code is fine for you, I will correct the import paths and release it as v0.2
When I try to send a message on a closed syslog server I can't handle the error because Dial is not providing any errors indicating that the socket is closed.
I only get a failure when sending a message but I can't find a way to get an error from it to handle it.
This is what I get before my code exits: