Subject Re: [firebird-support] firebirdnet provider connection delay problem
Author Carlos Guzmán Álvarez
Hello:

>i am developing a .net application using firebirdnet provider and the
>thing is that just to open the connection it takes like 8 sec for
>each database.
>
Can be a problem with name resolution can you try to execute
the sample below from a C# app for see how much time it gets??

IPAddress hostadd = Dns.Resolve("server_name").AddressList[0];
IPEndPoint EPhost = new IPEndPoint(hostadd, 3050);

this.socket = new Socket(
AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.IP);

// Disables the Nagle algorithm for send coalescing.
// This seems to be not supported in Linux (using mono::)
this.socket.SetSocketOption(
SocketOptionLevel.Socket,
SocketOptionName.NoDelay,
1);

// Make the socket to connect to the Server
this.socket.Connect(EPhost);




--
Best regards

Carlos Guzmán Álvarez
Vigo-Spain

One ring to rule them all
(The lord of the rings - J.R.R.Tolkien)