View Single Post
McTavish
Senior Member
Join Date: May 2021
Old 12-30-2022 , 05:39   Re: MSG_ONE vs MSG_ONE_UNRELIABLE
Reply With Quote #6

Quote:
Originally Posted by DeMNiX View Post
Reliable channel have limited queue's size, u just can crash server (or got endless loop,when server will try to resend rel.data to client)
correct me if I'm wrong,

It is generally not a good idea to send a large number of reliable messages in quick succession, as this can potentially cause problems on the server. This is because reliable messages are guaranteed to be delivered to the recipient, which means that the server will keep trying to send the message until it is successfully received. If the server is unable to send the message due to network issues or other problems, it may retry sending the message multiple times, which can use up a lot of bandwidth and processing power on the server.

To avoid these issues, it is generally a good idea to limit the number of reliable messages that you send and to ensure that your plugins do not send an excessive number of reliable messages in quick succession. If you do need to send a large number of reliable messages, you should consider using a rate-limiting mechanism to ensure that the messages are sent at a reasonable rate.

Additionally, it is also important to make sure that your plugin does not get stuck in an infinite loop when sending reliable messages. This can happen if the server is unable to send the message due to network issues or other problems, and the plugin continues to try and send the message indefinitely. To avoid this, you should make sure that your plugin has appropriate error handling in place to detect and handle these situations.
__________________
No Steam = No Support.
McTavish is offline