+ -900消息后,聊天服务器停止通信 [英] Chat server stops communication after +-900 messages

查看:101
本文介绍了+ -900消息后,聊天服务器停止通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用聊天服务器时,平均发送900条消息后,它将停止通信.
一旦新客户端连接或现有客户端断开连接,它就会继续发送另外的+-900条消息.

为什么这样?

When I am using the chat server, after I send an average of 900 messages it stops communicating.
Once a new client connects or an existing client disconnects it, then it continues for another +- 900 messages.

Why so?

推荐答案

我正在使用tcpsockets
所以我增加了客户的接收缓冲区,他解决了这个问题:)
i was using tcpsockets
so i increased the clients recieve buffer and his solved the problem :)


这篇关于+ -900消息后,聊天服务器停止通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆