You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have an big site where i implemented the websocket for do any action.
The problem was when i get more new connection to my websocket servers and with the analyzer of visual studio, i saw that the problem was on SocketWrapper.Authenticate Method.
Can u check if u found any leak of cpu in this method?
I can give u an access to the dev server with live test on the site.
Thanks.
The text was updated successfully, but these errors were encountered:
If you get a lot of connections at the same time, "RequestParser Parse -> Match match = _regex.Match(body);" creates a cpu leak.
The pattern of the regex is not good.
Now i'm using it -> private const string pattern = @"^(?[^\s]+)\s(?[^\s]+)\sHTTP/1.1\r\n" + // request line
@"((?<field_name>[^:\r\n]+):(?([^\r\n])\s)(?<field_value>[^\r\n])\r\n)+";
Hello,
i have an big site where i implemented the websocket for do any action.
The problem was when i get more new connection to my websocket servers and with the analyzer of visual studio, i saw that the problem was on SocketWrapper.Authenticate Method.
Can u check if u found any leak of cpu in this method?
I can give u an access to the dev server with live test on the site.
Thanks.
The text was updated successfully, but these errors were encountered: