#1 2023-04-11 02:50:23

redhan_xp
Member
Registered: 2023-03-18
Posts: 13

TWebSocketAsyncServer - THttpServerRequest Recycle

When reusing THttpServerRequest in TWebSocketAsyncServer, RespStatus was not reset:=0;
Causing subsequent judgment errors

Offline

#2 2023-04-11 08:59:13

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: TWebSocketAsyncServer - THttpServerRequest Recycle

You are right.
I have made some deeper refactoring, to ensure the context is fully reset between reuse.

Please try
https://github.com/synopse/mORMot2/commit/3bb726ba0f67a

Offline

#3 2023-04-11 09:56:29

redhan_xp
Member
Registered: 2023-03-18
Posts: 13

Re: TWebSocketAsyncServer - THttpServerRequest Recycle

Thank you, hard work

Offline

Board footer

Powered by FluxBB