Normally when you pull the network cable out of a network device (which simulates some drop on the network, so an obscure disconnect), the underlaying sockets do not detect a disconnect (at least our units don't) so we use keep alive to drop connection and reconnect.
All units use hourly long poll to nginx server. So my question is:
If the unit does not detect a cable disconnect (and probably 100 other situations on the network), then also nginx does not disconnect the socket and that socket stays open?
Stay open for how long?
Should we use on the nginx side also tcp keep alive towards client? How?