Added tracing to set_linger for debugging