Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-857

Wrong values in dtls_socket:emulated_options/0?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 22.0
    • Fix Version/s: None
    • Component/s: ssl
    • Labels:
      None

      Description

      dtls_socket:emulated_options/0 gives [mode, active, packet, packet_size]
      but emulated_options/1 calls emulated_options/3 that returns not_supported error for header, packet and packet_size.

      https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L135
      https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L170

      Maybe dtls_emulated_options/0 should return only [mode, active]?

      emulated_options() ->
          [mode, active].
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            benbro Ben B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: