- 
    Type:Bug 
- 
    Resolution: Done
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: 2.2.0
- 
    Component/s: Internal Client
- 
    Environment:O.S: Ubuntu 11.04,
 mongodb version: Mongodb v2.2.0,
 Hardware: Intel(R) Core(TM) i7 CPU 64bit, 8GB RAM
- 
        Linux
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
I have developed server application in C++ using the v2.2.0 c++ driver for establishing connections to MongoDb.
While the server is receiving the client requests, it performs MongoDb operations (connect, query, insert...). What happens is if i kill the Mongodb server (Ctrl + C) while the application server is performing MongoDb operations, in some cases i catch "socket exception [CONNECT_ERROR] for localhost:27017", but in many cases i can not catch any exception but the server application shuts down with the message: "DBClientCursor::init call() failed".
What is the meaning of this message, can i catch it and process it somehow, or it is a bug in the MongoDb driver?