I have a wrapper around a HTTPService
which handles the RESULT
, FAULT
and INVOKE
events that may be triggered by the send()
method. I have verified that the correct event handlers are called on successful requests, HTTP errors (e. g. 404) and on invocation.
I'm testing against a Jetty running on localhost. When it's turned off, i. e. my browser would give me "Can't establish connection", only the INVOKE
event is triggered, and there's no error thrown. This means that the call completes normally, but nothing ever happens, leading to a very frustrating user experience.
What's going wrong here, is this a bug or am I doing something wrong? How do I detect when the connection could not be established?
I tried stepping through the framework's source code in the debugger, but that's another can of worms, and a source of a lot frustration. Apparently I can't seem to find the correct SDK version (after the source that shipped with my SDK didn't work, I tried 3.0 through 3.5 from this download page), as the debugger jumps to the wrong lines. I get deepest using version 3.5, but then it gets out of sync again, somewhere down in AsyncInvoker.invoke()
. I'm running Flex Builder Linux, alpha 5.