cgi-fcgi on Win2K

chicks <sea_sbs-/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Minor thing, but I couldn't get cgi-fcgi.exe working
with sockets on Win2K.  I compiled fine, and started
fcgi executables fine on a port, which I could connect
to with Pi3Web, but not with cgi-fcgi.

Found two issues in OS_FcgiConnect() in os_win32.c:

was:  
host[len] = '\0';
now:  
host[len-1] = '\0';

The ":" was being included in the host name.

was:  
memcpy(&sockAddr.sin_addr, hp->h_addr, hp->h_length);
now:
memcpy(&(sockAddr.sin_addr), ...

Per MSDN example...


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.