From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: (Linux) GNAT socket exception - when setting No_Delay
Date: Thu, 20 Apr 2006 08:44:01 +0200
Date: 2006-04-20T08:44:01+02:00 [thread overview]
Message-ID: <44472DB1.2080008@mailinator.com> (raw)
In-Reply-To: <r1sih3-r6f.ln1@newserver.thecreems.com>
Jeffrey Creem wrote:
> Alex R. Mosteo wrote:
>
>> AAFellow@hotmail.com wrote:
>>
>>> Hey everyone,
>>>
>>> I'm actually still getting the GNAT socket exception when setting the
>>> No_Delay option when I run the code. (Ignore my previous reply - I
>>> didn't realize that I still had the No_Delay code commented out.)
>>>
>>> Is there a known issue with setting the No_Delay via GNAT.sockets when
>>> running on Linux?
>>
>>
>>
>> I'm confused, is this No_Delay the flag used for non blocking IO?
>>
>> I used to do that with this code without issues:
>>
>> procedure Set_Blocking_Io (This: in Object; Enabled : Boolean := True)
>> use Gnat;
>> is
>> Request : Sockets.Request_Type (Sockets.Non_Blocking_Io);
>> begin
>> Request.Enabled:= not Enabled;
>> Sockets.Control_Socket(This.Socket, Request);
>> end Set_Blocking_Io;
>>
>> where This of type Object was my higher level socket abstraction.
>
>
> No delay is not related to blocking. It disables the TCP Nagle algorithm
> (http://compnetworking.about.com/od/tcpip/l/bldef_nagle.htm).
Ah ok, so I was totally out of the mark. :/
> Usually one does this when you want to send small messages via TCP with
> minimal latency.
>
> Without it, small messages are often delayed about 200msec before being
> transmitted.
>
>
> Have you tried "AdaSockets" instead of GNAT sockets?
next prev parent reply other threads:[~2006-04-20 6:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 21:34 (Linux) GNAT socket exception - when setting No_Delay AAFellow
2006-04-14 1:20 ` Robert A Duff
2006-04-17 12:14 ` Alex R. Mosteo
2006-04-17 14:50 ` AAFellow
2006-04-19 16:41 ` Jeffrey R. Carter
2006-04-19 19:56 ` AAFellow
2006-04-19 20:15 ` Alex R. Mosteo
2006-04-19 23:00 ` Jeffrey Creem
2006-04-20 6:44 ` Alex R. Mosteo [this message]
2006-04-20 19:32 ` AAFellow
2006-04-20 2:41 ` Gene
2006-04-14 9:22 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox