HaxeFoundation / HaxeFoundation/haxe
What is the recommended way to handle response timeout in sys.Http
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Hello,
I am not sure this is the right place to ask this question.
**What is the recommended way to handle response timeout in sys.Http?**
I am using the cnxTimeout member variable but I am able only to handle this in the onError callback. Now I assume I have a timeout when I receive "Custom(EOF)" string as message in onError callback, but this is probably not enough to say it was a timeout or another kind of issue that caused this exception. It is possible to get an error code, a typed exception or to use a callback like onTimeout?
Contributor guide
Research direction
No files or tests are mentioned. Start by locating sys.Http and its cnxTimeout and onError handling, then determine how timeout failures are distinguished from other Custom(EOF) errors; done means the recommended timeout behavior is documented or exposed consistently.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100