Project

General

Profile

[WontFix] lighttpd does not build with MS Visual Studio C++

Added by Elivis almost 8 years ago

I'm trying to put together an application platform that does the following:

1. Initially can be run as a lightweight desktop app that would be downloaded from an app store like Microsoft's app store.
2. Can become multi-user via http requests by configuring to accept connections from other computers.
3. Would be robust enough to become massively multi-user with a relatively similar code base.

For instance:
1. I have a timesheet entry program that I can use for myself
2. I decide that I want my entire office to use it
3. I then want to run it on a cloud.
4. The software is also offered as SAS on a cloud where I pay a per user monthly fee.

Would Lighttpd fit into the http server portion of such a platform? I actually have something like what I'm talking about working fairly well on limited private installations. I'm concerned that the httpd code isn't secure or robust enough to put on an app store or on the cloud.

Thanks


Replies (4)

RE: Am I in the wrong place or completely ignorant? - Added by gstrauss almost 8 years ago

Would Lighttpd fit into the http server portion of such a platform?

Yes, lighttpd is an HTTP server.

I'm concerned that the httpd code isn't secure or robust enough to put on an app store or on the cloud.

Your concern here is very vague, and is unsubstantiated. Can you share more specific reasons for your concerns?

Yes, lighttpd is robust.
Yes, lighttpd is reasonably secure and is used on a large number of websites on "the internet", the thing that contains "the cloud".

BTW, while web servers (and all software) can have bugs, including security bugs, there tend to be more bugs in the backend scripting application logic than in widely used web servers.

RE: Am I in the wrong place or completely ignorant? - Added by Elivis almost 8 years ago

I apologize, I was unclear. I was talking about my own http server I wrote. I was concerned that my server is not robust enough, so I'm looking for a more widely used solution.

Yes, scripts can produce lots of bugs and security problems. One of my goals is to produce a more structured back-end that doesn't rely on "freeform" scripts like PHP.

I'll download lighttpd and take a look at the code to see how it can integrate into my current framework.

I'll post more and would like to contribute to lighttp's development if it works for me.

Thank you.

RE: Am I in the wrong place or completely ignorant? - Added by Elivis almost 8 years ago

Should it be expected to build in Visual C++ 2015? There are lots of issues that I could start listing, but they are quite numerous. Just a few for instance:

1. <sys/time.h> doesn't exist in Windows
2. __WIN32 isn't a standard Visual C++ preprocessor variable, but WIN32 and _WINDOWS are
3. following #defines create redefinition errors:
#ifdef __WIN32

#include <winsock2.h>

#define ECONNRESET WSAECONNRESET
#define EINPROGRESS WSAEINPROGRESS
#define EALREADY WSAEALREADY
#define ECONNABORTED WSAECONNABORTED

A bunch of stuff like that. I can plow throw and fix these things, but I'm wondering if there's an easier way. I don't like MingW because I like to use Visual C++'s debugger.

Thanks.

RE: lighttpd does not build with MS Visual Studio C++ - Added by gstrauss almost 8 years ago

Unfortunately, no, lighttpd does not build with MS Visual Studio C++.
Patches would be accepted, though there is a fair amount of work to be done to get it to compile, and then to get it to work outside the cygwin environment. For example, https://redmine.lighttpd.net/issues/2390 and there are probably other places where Windows path gymnastics need to occur.

As much as we'd love your help with getting lighttpd working on Windows under MS Visual Studio C++, perhaps you should consider an alternate httpd solution for your app.

    (1-4/4)