Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection Pooling = true causes 10054 error in IB server log [DNET62] #73

Closed
firebird-automations opened this issue Sep 20, 2006 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Vas Pip (xxcmp)

Assigned to: @carlosga

I found that very small application (below) causes "INET/inet_error: read errno = 10054" in server log. This messeage appears just after application finishes.
Also I found, that if I disable connection pooling (pooling=false) everything works fine.

class Class1
{
private static void Test()
{
DataSet ds = new DataSet();
using(FbConnection con = new FbConnection(@"Database=C:\Program Files\Borland\InterBase\examples\database\employee.gdb;User=SYSDBA;Password=masterkey;Dialect=1;Host=user;Charset=WIN1251;"))
{
con.Open();
}
}

\[STAThread\]
static void Main\(string\[\] args\)
\{
	Test\(\);
	Console\.ReadLine\(\);
\}

}

I think, that solution is to add the following to FbConnectionInternal class (FbConnectionInternal.cs)
~FbConnectionInternal()
{
this.Dispose();
}

	public void Dispose\(\)
	\{
		Disconnect\(\);
	\}
@firebird-automations
Copy link
Author

Commented by: @carlosga

IDisposable implementation is ow in CVS

@firebird-automations
Copy link
Author

Modified by: @carlosga

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @carlosga

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant