Subject | Classic Server |
---|---|
Author | Robert Dollinger |
Post date | 2009-03-12T11:16:57Z |
Hi,
I have encountered the following error with kinterbasdb 3.3 and the classic server:
Traceback (most recent call last):
File "<interactive input>", line 2, in <module>
File "C:\Programme\Python25\lib\site-packages\kinterbasdb\__init__.py", line 478, in connect
return Connection(*args, **keywords_args)
File "C:\Programme\Python25\lib\site-packages\kinterbasdb\__init__.py", line 641, in __init__
b.dsn, b.dpb, b.dialect, timeout
OperationalError: (-923, 'isc_attach_database: \n connection rejected by remote interface')
File "<interactive input>", line 2, in <module>
File "C:\Programme\Python25\lib\site-packages\kinterbasdb\__init__.py", line 478, in connect
return Connection(*args, **keywords_args)
File "C:\Programme\Python25\lib\site-packages\kinterbasdb\__init__.py", line 641, in __init__
b.dsn, b.dpb, b.dialect, timeout
OperationalError: (-923, 'isc_attach_database: \n connection rejected by remote interface')
I think the error is reproduceable also with older versions of kinterbasdb. It happens on my computer after opening more than 44 connection to the DB with Classic Server. Probably it depends on the hardware resources even tough I have still 1 GB of Ram free. With the SuperServer there are no problems opening more then 450 connections.
Example Code:
import kinterbasdb
l=[]
for i in xrange(50):
l.append(kinterbasdb.connect(host='127.0.0.1', database=r'c:\test.fdb', user='SYSDBA', password='masterke', charset='UTF8', dialect=3))
for i in xrange(50):
l.append(kinterbasdb.connect(host='127.0.0.1', database=r'c:\test.fdb', user='SYSDBA', password='masterke', charset='UTF8', dialect=3))
My Hardware:
Firebird Server 2.1.1
P4 3 GHz
2 GB Ram
Any ideas why this happens?
bye
Robert