0

I have some code that reads all data from mongodb collection by iterator. When I catch SocketTimeoutException I'm trying to read again – can I use this iterator or I need to start with new iterator?. Is it a correct way to handle SocketTimeoutException?

viba
  • 3
  • 1
  • What language and mongo driver are you using? Please tag the question with that info. – joao May 04 '16 at 16:15
  • I'm using java driver. mongodb version is 3.2 (and 3.0 before update) – viba May 05 '16 at 09:59
  • Good, now edit and update your question with some code showing how you are doing it. Also, welcome to SO! [Please read this guide](http://stackoverflow.com/help/how-to-ask) on how to ask questions. – joao May 05 '16 at 10:09

0 Answers0