On Saturday, March 31, 2012 5:07:40 AM UTC-7, Ben Noordhuis wrote: > > On Sat, Mar 31, 2012 at 03:57, zaheer ahmad <[email protected]> wrote: > > http.request doesnt seem to fire error callback if there is not network > > connection on linux. on windows it seems to work fine. Are there > workarounds > > to check for network connection before we make http requests? > > Can you define "no network connection"? Do you mean no configured > interfaces, temporary outage, something else? > I was looking for either case, but i realize the latter may be hard to differentiate from other cases e.g. slow connection? The former could be detected through ifconfig (or some other platform specific means i guess).
-- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
