I have a server written in c which listens on specific port and accepting connections in a loop.
it works great, but after some hours all new accepted connection after reading return -1 and errno is 110.
the binded port is ok, the client is accepted as well. but on read function it raises timeout error just after trying to read from that socket.
after restarting the server all things start working as expected.
the code? its a regular c code without any other junk codes which I dont have access right now.
I wonder if there is any limitation on linux which causes this behaviour or timeout errors are only limited to when sockets are timedout.
if are limited to when sockets timeout, why its happened just after being accepted? and why it works for some hours?
are there any causes which are not documented or I havent come across?