yojimbo87 / OrientDB-NET.binary

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

com.orientechnologies.common.concur.lock.OLockException make the program stuck in a forever loop #38

Closed peteryongzhong closed 10 years ago

peteryongzhong commented 10 years ago

I'm currently using the newest update of both orient-.net driver and oriented, When I'm using the orient console, the driver will be stuck in a forever loop caused by com.orientechnologies.common.concur.lock.OLockException. Please see the picture attached screen shot 2014-07-24 at 11 50 28 pm I suspect the driver catch the exception and try to reestablish the connect again and again.

peteryongzhong commented 10 years ago

Reconnect(); is being called every time an ERROR occurs in the Receive() function, I think this is not handled properly

peteryongzhong commented 10 years ago

I fixed this problem by adding a counter if the program is keep calling reconnect an exception will be throw.