yojimbo87 / OrientDB-NET.binary

C#/.NET binary driver for OrientDB
MIT License
21 stars 19 forks source link

Connection pool issue when orientdb restart #43

Open prah-net opened 9 years ago

prah-net commented 9 years ago

I'm not sure this issue has been already reported or not. Issue is

My web application is already running. Connection pool is initialized only once in a static constructor. It works fine and I can connect to database and make queries.

If I restart orient-db server, then all queries break with IOException "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."

If I try to drop connection pool in case of IO error again i get same error. So, I have to restart web server to make it work again.

As per my investigation I get error in Connection.ExecuteOperation method at code : _networkStream.Flush();

Please have a look at the issue.

Thanks

yojimbo87 commented 9 years ago

Hi, I'm no longer maintaining the driver, however you can post the issue here:

https://github.com/orientechnologies/OrientDB-NET.binary