Declare socket_active_status as static volatile