public Duration getLinger(TcpSocket fan) { try { int linger = socket.getSoLinger(); if (linger < 0) return null; return Duration.makeSec(linger); } catch (IOException e) { throw IOErr.make(e); } }