0

I am using facing a SocketException: connection reset problem after 60sec of idle.

My meaning of idle is that I open a connection but do not do anything exception after 60sec (say 61sec) to person a insert/update/select.

Do I need to change the SQL configuration file or can I change some setting to JDBC in my code during connection. If yes, what should I change?

Thanks for any help.

chj
  • 91
  • 9

1 Answers1

0

I guess you have the idle time out set too low.

See mysql connection timeout, inactivity

You can adjust the time out or tell the connection to auto-reconnect.

Community
  • 1
  • 1
ISparkes
  • 1,695
  • 15
  • 15