I've an express application that takes data from an IronMQ push queue. I've Dockerized this app and on running the application in a Docker Container, after some idle time say 20-30 mins, the App throws an error and exits out:
Error: read tcp 192.168.59.3:50346->192.168.59.103:2376: read: operation timed out
My boot2docker ip --> 192.168.59.103
I've forwarded the port at 3000.
I've tried using process object to catch uncaught exception but to no help.
Note: I've ran the app outside of docker on my local, and the app runs fine without throwing an error and logging out. So the problem seems to with docker.