Begin forwarded message:

Date: Thu, 23 Feb 2006 07:26:28 -0800
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Bugme-new] [Bug 6121] New: TCP_DEFER_ACCEPT is reset on listen() call


http://bugzilla.kernel.org/show_bug.cgi?id=6121

           Summary: TCP_DEFER_ACCEPT is reset on listen() call
    Kernel Version: 2.6.14, 2.6.15
            Status: NEW
          Severity: normal
             Owner: [EMAIL PROTECTED]
         Submitter: [EMAIL PROTECTED]


Most recent kernel where this bug did not occur: 2.6.13
Distribution:
Hardware Environment:
Software Environment:
Problem Description:
Value of TCP_DEFER_ACCEPT socket option is reset to zero when listen() is 
called.

Steps to reproduce:
Following program shows the problem:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>

main()
{
    int s = socket(AF_INET, SOCK_STREAM, 0);
    int val = 1;
    int len = sizeof(val);

    setsockopt(s, SOL_TCP, TCP_DEFER_ACCEPT, &val, len);
    listen(s, 1);
    getsockopt(s, SOL_TCP, TCP_DEFER_ACCEPT, &val, &len);
    printf("get TCP_DEFER_ACCEPT = %d\n", val);
}

On <=2.6.13 output is "get TCP_DEFER_ACCEPT = 3";
On >=2.6.14 output is "get TCP_DEFER_ACCEPT = 0".


Starting from 2.6.14, defer_accept is moved to request_sock_queue structure,
which is re-initialized in inet_csk_listen_start().

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to