Xojo.Net.HttpSocket.Send Timeout?

  1. 2 years ago

    Oliver O

    28 Jul 2017 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro

    When the internet connection is there and the server is up but the targeted webapp is for some reason not responding, then I would like to cancel the operation after the Xojo.Net.HttpSocket.Send method has been called, after 5 or more seconds.

    Before I use a timer for this, I wonder if there would be any other way to set a timetout?

    If no, would a feature request make sense? What do you think?

  2. Tim P

    28 Jul 2017 Pre-Release Testers Austin, TX

    The Xojo.Net.HTTPSocket timeout is currently 60 seconds with no way to change it.

  3. Oliver O

    29 Jul 2017 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro

    So I guess after 60 secs an Error event is raised, giving me a NetException with an OperationTimeout? Correct?
    (I can test tonight, I'm on vacation, actually

  4. Jason T

    29 Jul 2017 Pre-Release Testers, Xojo Pro Sydney, Australia
    Edited 2 years ago

    The error event is not raised. I think Geoff made a comment a few years back that this is by design. There's been a Feedback request (#38141) since Feb 2015 for a timeout property. It's currently 40th. Feel free to add points. :)

    I use the MBS CURL library to get around the timeout limitation for the part of my app that requires this.

  5. Oliver O

    29 Jul 2017 Pre-Release Testers, Xojo Pro https://udemy.seminar.pro

    Back to timer then...
    l'll add my points, thanks for the info!

  6. 4 months ago

    olivier v

    Dec 24 Pre-Release Testers, Xojo Pro Europe (France)

    Still no timeout....

    I added my points too.

  7. 5 weeks ago

    Arthur v

    Mar 13 Pre-Release Testers Netherlands

    Just to be clear, since there is no feedback (error) this means the socket will simply disappear after one minute?

or Sign Up to reply!