by default, return from read assuming that everything is ok
if a timeout is passed in, then lets give a hard try to see if there are any errors
(use case is when you are done sending your alerts)
jruby requires jruby-openssl