Error on main_port, shutting down


This problem is specific to SuperServer. It usually happens when one of the client computers crashes in the middle of transition of some "big packet", leaving the connection in waiting state. The "big packet" could be a long SQL statement or some data from a table column (large varchars and BLOBs) whose size is bigger than packet size of network transport protocol (TCP/IP or NetBEUI).

When this happens, the SuperServer keeps waiting on that connection to finish sending data and blocks all other threads. It will time-out in the end, when first keepalive packet is sent and no reply is received (which by default happens after 2 hours). Meanwhile, all other connections also time out.

There are fixes for this in Firebird 2, so if you are using 1.x you should either upgrade or use Classic to prevent this from happening - or restart the Firebird server when you see it 'stuck'.


Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page.

If you are a commercial tool maker and your tool features a great way to handle the issue written about in this FAQ, please check out our advertisement page.



All contents are copyright © 2007-2017 FirebirdFAQ.org unless otherwise stated in the text.


Links   Firebird   News   FlameRobin   Home Inventory powered by FB  
Add content   Advertise   About  

Categories
 Newbies
 SQL
 Installation and setup
 Backup and restore
 Performance
 Security
 Connectivity and API
 HOWTOs
 Errors and error codes
 Miscellaneous