Added in call to setsockopt() to turn on TCP keepalive (to prevent connections from being disconnected on inactivity).
Added in call to setsockopt() to turn on TCP keepalive (to prevent connections from being disconnected on inactivity).

Summary: Our distributed AAR connections are getting dropped for what seems to be longer recording sessions.  It's possible that firewalls may be dropping our connection due to inactivity (since no TCP traffic occurs during the recording session itself).  This code change turns on the "keepalive" mode of TCP sockets so that it will keep the connection open.

Test Plan: Compiled in Linux.  Will build new Windows version and test from home.

Reviewers: szielinski

Reviewed By: szielinski

CC: ssirigam

Differential Revision: http://cr.irl.ucf.edu/D154

ucfistirl/atlas,ucfistirl/atlas