Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 31st, 2004, 08:13 AM
singhjoga singhjoga is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 20 singhjoga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 31 sec
Reputation Power: 0
INET/inet_error: connect errno = 4

Hi,
I have multi-threaded application in C. When it starts, it tries to create simultanous connections to firebird running on the same machine. I am using firebird 1.5.1 on Redhat 9.

In some cases I get the following error:

2004-12-31 18:09:07: Error: -902(335544721) Unsuccessful execution caused by a system er
ror that precludes successful execution of subsequent statements.
fbauth:connect_db, where 902 is the SQLCODE and 335544721 is the isc_status vector value.

Same error in the firebird log is shown as:
inventos.localdomain (Client) Fri Dec 31 18:09:07 2004
INET/inet_error: connect errno = 4


This happens only when multiple threads are trying to connect at the same time. When the number of simultaneous connections is high (around 15), I get these errors very frequently. But when I restricted the simultanous connections to 5 (using internla counters), I get only 1 or 2 errors only.

Any ideas what are these errors ? What is the root cause of the error?

I have written proper error trapping, which does the re-connections and recovers from the errors.

But when the server is running for a long time, it stops responding at all. Connection fails even when there is single connection request and I have to restart the firebird.

Any ideas??

JS

Reply With Quote
  #2  
Old January 27th, 2005, 09:52 PM
dtremblay dtremblay is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 4 dtremblay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 58 sec
Reputation Power: 0
If you're running the classical server, you may want to modify your parameters in your firebird file of xinetd.d. Also note that performance is not as good.

If possible, use the SuperServer configuration. IBPhoenix.com has more information on this topic. See http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_ss_vs_classic .

Also, if you're using the C libraries with POSIX threads (I'm not sure if RedHat 9 has POSIX libraries), you may want to check what version of Firebird you're using. If so, install version 1.5.2.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > INET/inet_error: connect errno = 4


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT