Update: maybe it wasn't about the keepalive after all?