Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17588

MSAFD - Missing extension functions requested by Nginx

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Networking
    • Labels:

      Description

      Environment:
      QEMU 2.7.0 windows
      ReactOS 0.4.15-x86-dev (Build 20210508-0.4.15-dev-2522-g9e0a3cd)
      Nginx 1.19.8

      Everytime Nginx is launched, it requests 2 extension functions on msafd.dll, as we can see here:
      https://github.com/nginx/nginx/blob/master/src/os/win32/ngx_win32_init.c

          if (WSAIoctl(s, SIO_GET_EXTENSION_FUNCTION_POINTER, &tf_guid, sizeof(GUID),
                       &ngx_transmitfile, sizeof(LPFN_TRANSMITFILE), &bytes,
                       NULL, NULL)
              == -1)
          {
              ngx_log_error(NGX_LOG_NOTICE, log, ngx_socket_errno,
                            "WSAIoctl(SIO_GET_EXTENSION_FUNCTION_POINTER, "
                                     "WSAID_TRANSMITFILE) failed");
          }
       
          if (WSAIoctl(s, SIO_GET_EXTENSION_FUNCTION_POINTER, &tp_guid, sizeof(GUID),
                       &ngx_transmitpackets, sizeof(LPFN_TRANSMITPACKETS), &bytes,
                       NULL, NULL)
              == -1)
          {
              ngx_log_error(NGX_LOG_NOTICE, log, ngx_socket_errno,
                            "WSAIoctl(SIO_GET_EXTENSION_FUNCTION_POINTER, "
                                     "WSAID_TRANSMITPACKETS) failed");
          }
      

      In the debug log, we can see

      err:(/dll/win32/msafd/misc/dllmain.c:2520) Querying unknown extension function: b5367df0
      err:(/dll/win32/msafd/misc/dllmain.c:2520) Querying unknown extension function: d9689da0
      

      Those missing functions MAY be causing misbehaviors in Nginx (see CORE-14486 for example).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Julcar Julcar
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: