Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-623

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.1.0
    • 1.1.0
    • transport/http
    • None
    • 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.

      Attachments

        1. citation_from_msdn.jpg
          27 kB
          Juergen Haeussler

        Activity

          People

            manjula peiris Manjula Peiris
            jhaeuss Juergen Haeussler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: