Delphi-Cross-Socket icon indicating copy to clipboard operation
Delphi-Cross-Socket copied to clipboard

两个底层问题

Open PassByYou888 opened this issue 3 years ago • 2 comments

1,EPOLL与KQUEUE模型,发送数据块时,在锁定中触发状态事件,在该事件中如果继续调用send方法,发生卡死,应该解锁后来触发,这种问题不易于发现,也不好调试,我刚检查过最后更新代码

2,运营时的问题,socket要给出最大连接限制,例如2万,超过以后连接请求要全部reject

3,一个建议,fpc带上jemalloc/tcmalloc跑服务器是优于d的,希望多关注fpc,少关注设计模式

by.qq600585

PassByYou888 avatar Nov 06 '21 12:11 PassByYou888

每天陷于工作和生活的琐事中,很少有时间打磨这套开源库,加上个人能力实在有限,实在抱歉。

要是有好的改进思路,欢迎提交代码,也可以造福其他使用者,感谢。

发自我的iPhone

在 2021年11月6日,20:05,PassByYou888 @.***> 写道:



1,EPOLL与KQUEUE模型,发送数据块时,在锁定中触发状态事件,在该事件中如果继续调用send方法,发生卡死,应该解锁后来触发,这种问题不易于发现,也不好调试,我刚检查过最后更新代码

2,运营时的问题,socket要给出最大连接限制,例如2万,超过以后连接请求要全部reject

3,一个建议,fpc带上jemalloc/tcmalloc跑服务器是优于d的,希望多关注fpc,少关注设计模式

by.qq600585

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/winddriver/Delphi-Cross-Socket/issues/103, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYSQXNDITXRMONIODC3VIDUKUKXZANCNFSM5HPRHKJQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

winddriver avatar Nov 07 '21 02:11 winddriver

@winddriver 这全问题也看一下吧!

pony5551 avatar Mar 24 '22 13:03 pony5551

  1. 已调整
  2. 连接限制可以放到更上一层去做,我希望把dcs底层代码逻辑做得尽量简洁
  3. 实在没精力去研究fpc啦

winddriver avatar Nov 22 '22 03:11 winddriver