Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Enable/Disable nagle algorithm  (Read 6769 times)

0 Members and 2 Guests are viewing this topic.

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Enable/Disable nagle algorithm
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Enable/Disable nagle algorithm
« Reply #1 on: October 16, 2009, 10:18:58 am »
True.

What would you need to enable/disable it for?
Laurent Gomila - SFML developer

Dravere

  • Newbie
  • *
  • Posts: 37
    • View Profile
Enable/Disable nagle algorithm
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Enable/Disable nagle algorithm
« Reply #3 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.
Laurent Gomila - SFML developer

e_barroga

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Enable/Disable nagle algorithm
« Reply #4 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Enable/Disable nagle algorithm
« Reply #5 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" ;)
Laurent Gomila - SFML developer

EiTkoCaT

  • Newbie
  • *
  • Posts: 47
    • View Profile
Enable/Disable nagle algorithm
« Reply #6 on: May 26, 2011, 12:02:35 am »
I need it.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Enable/Disable nagle algorithm
« Reply #7 on: May 26, 2011, 07:53:39 am »
Quote
I need it.

Please explain us why.
Laurent Gomila - SFML developer

EiTkoCaT

  • Newbie
  • *
  • Posts: 47
    • View Profile
Enable/Disable nagle algorithm
« Reply #8 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Enable/Disable nagle algorithm
« Reply #9 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.
Laurent Gomila - SFML developer