[squid-users] 2.5_STABLE14 SquidNT Service Installation Crashes

From: Richard B. Maring <rich@dont-contact.us>
Date: Thu, 1 Jun 2006 14:30:00 -0400

We have successfully compiled 2.5_SATBLE14NT under Visual Studio 2005.
Doing a squid -1 throws an 'Debug Assertion Failed' osfinfo.c line 314.
Commenting out the following in win32.c allows it to install.

    if (WIN32_OS_version !=_WIN_OS_WINNT) {
        /*if (getsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char
*)&opt, &optlen)) {
                  s_iInitCount = -3;
                  WSACleanup();
                  return (s_iInitCount);
        } else {
            opt = opt | SO_SYNCHRONOUS_NONALERT;
            if (setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char *)
&opt, optlen)) {
                        s_iInitCount = -3;
                        WSACleanup();
                        return (s_iInitCount);
            }
        } */

However, it fails with the same error when the service is started.
Any ideas on why this is failing to set socket options properly?

Rich Maring
Received on Thu Jun 01 2006 - 12:30:04 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT