req.setDataHandler callback never fires on b96 — every POST to SetHttpHandler hangs #279
Closed
ktox-dev
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 2 comments
|
Thanks, we are looking into this. |
0 replies
|
Duplicate of #37. My fix for a future patch fixes both. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
On FiveM for GTAV Enhanced (FXServer b96), the callback passed to
req.setDataHandler(...)inside aSetHttpHandlerhandler is never invoked.The handler therefore never sends a response and the connection is closed by
the server after ~5 seconds with no reply.
The same resource works correctly on FiveM Legacy.
Reproduction
A minimal server-only resource:
Expected vs actual
Expected: the POST returns
200 {"ok":true}.Actual: no response at all.
curlreports status000after ~5.2 s.Isolation
The request/response path itself is fine — only the body callback is affected.
Measured against a real resource with both GET and POST routes:
200in 0.22 s404without reading the body)404in 0.22 sreq.setDataHandler)The second row is the interesting one: it takes the same code path — accept
request, check
req.method, look up the route — and answers immediately. Theonly difference in the third row is that the handler reads the request body.
Environment
cfx-server_win_x64), FiveM for GTAV Enhanced early accessImpact
Any resource exposing an HTTP API with POST endpoints stops working —
webhook receivers, admin/dev tooling, external integrations. GET-only
resources are unaffected.
All reactions