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

"Protocol not supported" error for udp with socket:open/3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hi, 

       

      getting this error with socket:open/3 while with open/2 everything is fine. At least, such behaviour is not expected when following reference http://erlang.org/doc/man/socket.html#open-3 & http://erlang.org/doc/man/socket.html#type-protocol 

       

      1> {ok, Socket} = socket:open(local, dgram).

      {ok,{'$socket',#Ref<0.745231699.1157758979.206191>}}

       

       

      2> {ok, Socket} = socket:open(local, dgram, udp).

      ** exception error: no match of right hand side value {error,eprotonosupport}

       

      Bests,

      Roman

       

       

       

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            romangurinovich RomanGurinovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: