Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Disabling algorithms

Disabling algorithms

2004-09-24       - By smeag0l

 Back
Reply:     1     2     3  

Thanks brian

-- --Original Message-- --
From: shrike-list-bounces@(protected) [mailto:shrike-list-bounces@(protected)]
On Behalf Of Brian T. Brunner
Sent: Friday, September 24, 2004 9:28 AM
To: shrike-list@(protected)
Subject: Re: Disabling algorithms


Nagle Algorithm disable:

setsockopt(fd,IPPROTO_TCP,TCP_NODELAY,&x,sizeof(x));

For other opt(s),
man 7 tcp
man 7 ip
man 7 socket
man setsockopt

To make setting options fairly painless (once I figured out what they were
and what values I wanted for them)
I wrote a macro
#define MAYBEDO(a,b,c,d,e,f,g) { if ((a) == 0) {(a) |=
setsockopt(c,d,e,f,g); b++;}}
and used it thus:
  int val = 1;
  int step = 0;
  int errval = 0;
  struct linger myLinger = {1,1};
               errno=0;
 
MAYBEDO(errval,step,fd,SOL_SOCKET,SO_LINGER,&myLinger,sizeof(myLinger));
  MAYBEDO(errval,step,fd,SOL_SOCKET,SO_REUSEADDR,&val,sizeof(val));
  MAYBEDO(errval,step,fd,SOL_SOCKET,SO_KEEPALIVE,&val,sizeof(val));
  val = 4;
  MAYBEDO(errval,step,fd,SOL_TCP,TCP_KEEPINTVL,&val,sizeof(val));
  MAYBEDO(errval,step,fd,SOL_TCP,TCP_KEEPIDLE,&val,sizeof(val));
  MAYBEDO(errval,step,fd,SOL_TCP,TCP_KEEPCNT,&val,sizeof(val));
  MAYBEDO(errval,step,fd,IPPROTO_TCP, TCP_NODELAY,&val,sizeof(val));

Then I check errval, step, and errno.

Brian Brunner
brian.t.brunner@(protected)
(610)796-5838

>>> smeag0l@(protected) 09/23/04 10:18PM >>>
Hello, does anyone know how to disable the "Nagle Algorithm "     and the
"Delayed Acknowledgement algorithm"   in RedHat 9?

Thanks
Ryan


--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list

*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.

www.hubbell.com - Hubbell Incorporated


--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list


--
Shrike-list mailing list
Shrike-list@(protected)
https://www.redhat.com/mailman/listinfo/shrike-list