Pycckue-Bnepeg / samp-cef

Client and server plugins for SA:MP to embed CEF.
GNU General Public License v3.0
100 stars 46 forks source link

CEF network problems #33

Open somethingInterestingHappens opened 2 years ago

somethingInterestingHappens commented 2 years ago

Hello.

First I have to say thank you for such amazing work you have done.

We're investigating an issue with networking in your plugin. Sometimes it simply drops connections (from server or client, we don't know what side is a problem) and players unable to use CEF. At such moments in log we have such rows:

21:51:16 [TRACE] (5) client::network: [client\src\network.rs:329] CEF Network: OpenConnection (ip:port)
21:51:16 [TRACE] (5) client::network: [client\src\network.rs:330] CEF Network: Elapsed since Network module created 140.2991411s
21:51:16 [TRACE] (5) client::network: [client\src\network.rs:390] CEF Network: Timeout
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:415] CEF Network: CEF didn't connect. Retrying ...
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:329] CEF Network: OpenConnection (ip:port)
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:330] CEF Network: Elapsed since Network module created 142.8002528s
21:51:18 [TRACE] (5) client::network: [client\src\network.rs:390] CEF Network: Timeout
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:415] CEF Network: CEF didn't connect. Retrying ...
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:329] CEF Network: OpenConnection (ip:port)
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:330] CEF Network: Elapsed since Network module created 145.3058335s
21:51:21 [TRACE] (5) client::network: [client\src\network.rs:390] CEF Network: Timeout

Also in SAMP game mode we have debug and on such moments OnCefInitialize returns success 0 for players with such problem.

Sometimes it receives "JoinResponse OK", but then connection loses again in some chance. We have tested it on 2 OS (Debian 10, Debian 8) and problem occurs on both. We have opened required by CEF port on our firewall (for UDP and TCP connections) and requested our host to disable protection and filtering on CEF port, so it's not a host/protection problem.

This issue occurs not every time and not for everyone. It can be solved on rejoin (for 2-5 attempts), but it still creates problems and it's unable to work with it as expected.

Does any one have suggestions how we could solve or investigate deeper this issue?

WestSide56 commented 2 years ago

https://github.com/ZOTTCE/samp-cef/suites/7017969838/artifacts/275727586 try this