Axis2-C
  1. Axis2-C
  2. AXIS2C-623

axis2c sets deprecated win32 socket options that avoid subsequent opening of sockets

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.1.0, Current (Nightly)
    • Fix Version/s: 1.1.0
    • Component/s: transport/http
    • Labels:
      None
    • Environment:
      Win32

      Description

      In util/src/network_handler.c - lines 239-240 the default behaviour of socket creation through windows API gets changed:

      setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char *)&sock_opt,
      sizeof(sock_opt));

      As you can find in the MSDN documentation for SOL_SOCKET Socket Options, one should not use this options:
      http://msdn2.microsoft.com/en-us/library/ms740532.aspx

      This option avoids the subsequent opening of sockets by other APIs like Orbacus (Corba).

      As we did comment out these two lines, everything worked correctly.
      So we assumed that this code is obsolete.

      1. citation_from_msdn.jpg
        27 kB
        Juergen Haeussler

        Activity

          People

          • Assignee:
            Manjula Peiris
            Reporter:
            Juergen Haeussler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development