#444 read/connect timeouts not working


I am using httpunit for integration testing with cargo and I need longer read timeouts to wait for an application to be started. I noticed in the code that this feature is commented.
// [ 1518901 ] enable http connect and read timeouts (needs JDK 1.5)
// XXX enable for 1.7 release in 2008
// comment out if you need this and have JDK 1.5
// if (_connectTimeout>=0) connection.setConnectTimeout( _connectTimeout );
// if (_readTimeout>=0) connection.setReadTimeout( _readTimeout );
But creating own version if you need this functionality seems quite ineffective. It should be fairly easy to add a check for the JDK version and run the code only if the JDK is 1.5+.

Best regards,


  • Nikolay Nikolov

    Nikolay Nikolov - 2010-12-21
    • priority: 5 --> 7
    • summary: read/connect timeouts n ot working --> read/connect timeouts not working
  • Wolfgang Fahl

    Wolfgang Fahl - 2012-09-13

    Dear Nikolay,

    thank you for your bugreport.
    The lines you mention have been uncommented for a while already.
    The 1.7.2 release is pending and should show up at maven-central soon.


  • Wolfgang Fahl

    Wolfgang Fahl - 2012-09-13

    If you have a fix for this, I would be very happy to incorporate
    it. Please include a test case or instructions for duplicating
    the problem.

  • Wolfgang Fahl

    Wolfgang Fahl - 2012-09-13
    • assigned_to: nobody --> wolfgang_fahl
    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks