Open harveyliuit opened 3 months ago
I guess the question from #811 is related to this issue that you have. Having in mind the things that I pointed out there, I'd say that:
epoll
and/or read/recv
on the corresponding socket in order to get the received data as soon as they arrivepkt_tx_delay
option to see if it'll improve the latency. If you test with single connection with very few packets sent then every packet will be delayed up to pkt_tx_delay
microseconds and this will slow down the whole connection. The default value of this option is there for the most common case where you have big number of connections and each one of them is sending packets at full speed i.e. it's there for high throughput scenarios.Thank you very much @freak82! I'll look into it.
I Tried to implement a websocket client. However, the packet got delayed more and more, almost exponentially. Does F-stack have issues with long running TCP connections? Can someone know please help? Thank you in advance.