nginx for Windows - WSASend() socket error 10057
yshpakov at hotmail.com
Wed Feb 12 02:01:57 UTC 2020
Trying to make nginx work as SMTP server and/or SMTP proxy. Done everything according to:
But excluded (don't care about SSL at this point so don't want to install/configure Perl now):
nmake was successful and nginx.exe was created.
However nginx.exe keeps failing with the error:
WSASend() failed (10057: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied) while in http auth state, client: 127.0.0.1, server: 0.0.0.0:8025
Windows API says the following about this error:
Socket is not connected.
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using sendto<https://docs.microsoft.com/en-us/windows/desktop/api/winsock/nf-winsock-sendto>) no address was supplied. Any other type of operation might also return this error—for example, setsockopt<https://docs.microsoft.com/en-us/windows/desktop/api/winsock/nf-winsock-setsockopt> setting SO_KEEPALIVE<https://docs.microsoft.com/en-us/windows/desktop/winsock/so-keepalive> if the connection has been reset.
Windows Sockets Error Codes (Winsock2.h) - Win32 apps | Microsoft Docs<https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2>
Return code/value Description; WSA_INVALID_HANDLE 6: Specified event object handle is invalid. An application attempts to use an event object, but the specified handle is not valid.
Managed to debug your code in VS 2010 a little bit but it's brutal C so it's hard to figure your code out. And this debugger doesn't show you any local variables values.
Any recommendation for me to make it work?
Tried to play with config (commenting/uncommenting):
#error_log logs/error.log notice;
#error_log logs/error.log info;
# auth_http none;
# smtp_auth login plain cram-md5;
# smtp_capabilities "SIZE 10485760" ENHANCEDSTATUSCODES 8BITMIME DSN;
Tried both under a regular user and under admin. Tried on 25, 1025 and 8025 ports.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx-devel