kerryjiang / SuperSocket

SuperSocket is a light weight, cross platform and extensible socket server application framework.
Apache License 2.0
3.95k stars 1.15k forks source link

Flow Control in Websocket and TCP Server #527

Open utkarshkap opened 3 years ago

utkarshkap commented 3 years ago

I am facing typical issue while sending real time data, almost 1000+ data packet per second, I have set SendingQueueSize = 25000 and SendTimeOut = 2000 with SyncSend = false, For sending, I am using bool sent = session.send(string JSON); which often result in false, my first question is is this send method waits for 2000 ms for ACK? Secondly, I am logging packet as dropped packet when send function returns false.

Kindly guide me what should be proper config for 1000+ data per second?

kerryjiang commented 3 years ago

Is 1000+ the package size or number of the packages you want to send?

utkarshkap commented 3 years ago

number of packets ..  On Monday, 18 October, 2021, 01:14:20 pm IST, Kerry Jiang @.***> wrote:

Is 1000+ the package size or number of the packages you want to send?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.