]> granicus.if.org Git - libevent/commit
Make the bufferevent_connect_fail test faster on OSX.
authorNick Mathewson <nickm@torproject.org>
Wed, 21 Oct 2009 19:21:05 +0000 (19:21 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 21 Oct 2009 19:21:05 +0000 (19:21 +0000)
commitfdd11c00bb7a90d2f11a8933baa577ac199f74e3
tree742609c44d111074960ef063b2becdac70d37af5
parentb73ad7bc4504882f7b50ed72c2643653fdc43a61
Make the bufferevent_connect_fail test faster on OSX.

It seems that connecting to a listener that is bound but not accepting
or listening doesn't give a 'connection refused' error on OSX, but
rather makes the connect() time out after 75 seconds.  I couldn't find
any way to make the timout shorter.  Fortunately, closing the listener
after a second or so makes the desired error occur after another
second or so.

svn:r1457
test/regress_bufferevent.c