HaxeFoundation / HaxeFoundation/haxe

[neko] haxe.Http sets socket timeout after sending the request

Open
#4,814 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.