Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14481

Modify the Flink valid socket port check to 0 to 65535.

    XMLWordPrintableJSON

Details

    Description

      In Flink, I found that Flink's socket port check is 'port >= 0 && port <= 65536.

      checkArgument(serverPort >= 0 && serverPort <= 65536, "Invalid port number.");

      But in the process of binding the port, the valid port is 0 to 65535(A port number of zero will let the System pick up anephemeral port in a bin operation). Although the 65536 port will fail due to the port out of range when actually binding, Flink has already done a valid range check on the port, which seems to be very confusing. Should we modify Flink's port check to 0 to 65535?

      Attachments

        Activity

          People

            AT-Fieldless AT-Fieldless
            Ming Li Ming Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h