Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6258215

Num of backlog in ServerSocket(int, int) should be mentioned more explicitly in API document

XMLWordPrintable

    • b35
    • generic
    • generic
    • Not verified

      The number of backlog in ServerSocket(int port, int backlog) Constructor is explained
      simply as follows.

      " Parameters:
          port - the specified port, or 0 to use any free port.
          backlog - the maximum length of the queue."

      http://java.sun.com/j2se/1.4.2/docs/api/index.html
      http://java.sun.com/j2se/1.5.0/docs/api/index.html

      However, even if we specify preferable number as the number of backlog ,
      actual number depends on underlying Opreationg System.

      The documnet should say the below(just example).
       "Parameters:
          port - the specified port, or 0 to use any free port.
          backlog - Request of size of the backlog is just passed to underlying OS.
                    How the OS performs with the request depends on each OS."

      =====================================================================
      ###@###.### 2005-04-20 06:15:45 GMT

            michaelm Michael McMahon
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: