www-builds mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith W <keith.w...@gmail.com>
Subject FreeBSD Jenkins slave - no timely "connection refused" when connecting to a port is not bound
Date Mon, 20 Feb 2012 09:55:45 GMT
Hello builds

I have a question about the FreeBSD Jenkins slave.

Our (Qpid) test suite includes a end-to-end test that tests the
behaviour of Qpid client when it tries connect to the Qpid server
before it is started.  Specifically, this means the client tries to
form a TCP/IP connection to an unbound port on localhost.   The test
relies on a getting a timely "Connection Refused" type error from the
underlying socket connect attempt.

The test works without problems on the other Apache Jenkins slaves
(ubuntu, solaris etc), but on FreeBSD it consistently fails.

I can reproduce the problem outside Qpid by getting a Jenkins job to
telnet to an unused port.  The telnet command hangs for over a minute
then produces:

telnet localhost 45678
Operation timed out

I would expect an immediate "Connection Refused" when trying to
connect to a port which is not bound.

Is this behaviour deliberate (part of a FreeBSD jail config??
perhaps), or a miss configuration of the FreeBSD instance?

Thanks in advance, Keith Wall.

Mime
View raw message