SFML community forums

General => Feature requests => Topic started by: e_barroga on October 16, 2009, 01:08:59 am

Title: Enable/Disable nagle algorithm
Post by: e_barroga on October 16, 2009, 01:08:59 am
It doesn't seem like SFML has a method that allows to disable/enable the nagle algorithm.
Title: Enable/Disable nagle algorithm
Post by: Laurent on October 16, 2009, 10:18:58 am
True.

What would you need to enable/disable it for?
Title: Enable/Disable nagle algorithm
Post by: Dravere on October 17, 2009, 04:10:09 pm
Quote from: "Laurent"
What would you need to enable/disable it for?

Enhance responsiveness. At least this is one of the common reason, why people disable the nagle algorithm.

Especially in a real time multiplayer game it can be usefull to disable the nagle algorithm, so the actions are sent immediatly over the net and there occurs no or less lag.
Title: Enable/Disable nagle algorithm
Post by: Laurent on October 17, 2009, 04:11:38 pm
Ok, I should have say it differently: why would you want to enable it? SFML disables it by default.
Title: Enable/Disable nagle algorithm
Post by: e_barroga on October 22, 2009, 08:37:04 pm
Quote from: "Laurent"
Ok, I should have say it differently: why would you want to enable it? SFML disables it by default.

Honestly, I've never used nagle algorithm, however, I still think that people should have the option to enable it if they deem fit.

It is really only useful for congestion problems, which shouldn't be too much of a problem with today's technology, but there are always those certain cases.
Title: Enable/Disable nagle algorithm
Post by: Laurent on October 24, 2009, 12:02:43 pm
So I'll wait until someone actually needs it. I don't really like adding a feature that "might be useful to someone some day" ;)
Title: Enable/Disable nagle algorithm
Post by: EiTkoCaT on May 26, 2011, 12:02:35 am
I need it.
Title: Enable/Disable nagle algorithm
Post by: Laurent on May 26, 2011, 07:53:39 am
Quote
I need it.

Please explain us why.
Title: Enable/Disable nagle algorithm
Post by: EiTkoCaT on May 27, 2011, 04:56:20 pm
OK, so I right now only because of this I can't work with SFML:
so the server side only is SFML, the client is not and there I can disable nagle but I need it with the server also. The reason is that this server is for MMO game. And in my game, I'm sending 60 messages in 1 second to each client (60 FPS). And so it gives me a lot of troubles, I must disable nagle because it is much better for me.

Can you please explain me how to disable it? There's gotta be a way.
The thing is that I must disable it ASAP. I have a schedule that I must work with.


Thanks.
Title: Enable/Disable nagle algorithm
Post by: Laurent on May 27, 2011, 06:05:04 pm
Ok I see.

First:
Quote from: "Laurent"
Ok, I should have say it differently: why would you want to enable it? SFML disables it by default.


And secondly, I explain why it's not a solution for you in the dedicated topic.