Re: TCP retransmission : how to detect from an application ?

From: Andi Kleen
Date: Wed Jun 02 2004 - 08:35:24 EST


"Paul Rolland" <rol@xxxxxxxxxx> writes:

> I've an application that is establishing TCP connection, and exchanges some
> data.
> However, from time to time, I suspect there are some packet loss, which are
> corrected by the kernel (hell, TCP is reliable, isn't it :-), but I'd like
> to know if an application can detect this (well, I don't want to be notified
> of a packet loss once detected, but I'd like to get some stats before
> closing
> the connection).
>
> Is there something possible ? Some ioctl ? Some /proc/magic-interface ?

RTFM. man tcp -> TCP_INFO

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/