live555最大连接数的问题

shangqt 2012-05-17 10:14:07
最近在使用live555,通过测试发现它可支持的最大客户端数量是32,但是没有发现这个限制的代码是在哪里,有没有大侠研究过这部分的,请指教,谢谢
...全文
494 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
飞天舞 2012-05-18
  • 打赏
  • 举报
回复
最大客户端数量是32.
通过用一个int的32位,每位的0或1来表示是否有连接
zoulie 2012-05-17
  • 打赏
  • 举报
回复
live555单线程,连接数上不去的
shangqt 2012-05-17
  • 打赏
  • 举报
回复
囧 ,自己找到了,分享一下

How many concurrent connections/streams can a RTSP server (built using our code) support?

There's no fixed limit in our code. In practice, however, the number of open files (sockets) supported by the underlying operating system often sets a limiting factor. If you can increase this number (in your operating system), then this sometimes can increase scalability.
In Windows, there is also a limit set by the "FD_SETSIZE" constant, which has a default value of 64, which produces a maximum of 32 concurrent clients. You might also wish to increase this value - e.g., by redefining FS_SETSIZE at compile time.

欢迎来接分:P
rightorwrong 2012-05-17
  • 打赏
  • 举报
回复
FD_SETSIZE默认为64个socket
maikforever 2012-05-17
  • 打赏
  • 举报
回复
live555 好像是 select 模型的,具体看 select 的压力吧,

PS: 我是来接分的。

2,550

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧