HaxeFoundation / HaxeFoundation/haxe
[neko] haxe.Http sets socket timeout after sending the request
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
So if something happens during sending the message the socket blocks forever.
https://github.com/HaxeFoundation/haxe/blob/development/std/haxe/Http.hx#L542
```
sock.setTimeout(cnxTimeout);
```
This line probably needs to be moved from readHttpResponse() into customRequest() right after the socket is created.
Contributor guide
Assessment
This issue has not been assessed yet.