jaakkos/winston-logstash — pull request #6 by ifraixedes (2013-11-14 18:30:53+00:00)
Title: Provided CA parameter to pass to the tls socket connection and socket error non ECONNREFUSED reporting

I provided a new option to the transport that it is passed straightaway to TLS socket connection as node method accepts.
It allows to drop errors for self-signed certificate, so I could pass the test in my machine, otherwise the test was stopped waiting infinitely in the 'secure connection' suite. I think that it is a change of node API in some release, launched after you used for tested it.
I also added to ```socket.on('error', ...``` a check to emit an error to the transport when the socket receive an error different than ECONNREFUSED.