Fwiw, around 25+ years ago in several of my proxy servers, I coded up a little embedded web server. It listened on a special port where I could
go in and alter settings, see status, ect using a browser. I never coded
up a GUI using Windows for it.
Iirc, I also had another port where I could telnet into it and issue commands.
On 6/13/2026 3:21 AM, Chris M. Thomasson wrote:
Fwiw, around 25+ years ago in several of my proxy servers, I coded up a
little embedded web server. It listened on a special port where I could
go in and alter settings, see status, ect using a browser. I never coded
up a GUI using Windows for it.
Iirc, I also had another port where I could telnet into it and issue
commands.
And is the server multi-threading? Did it leak memory? :)
Will you disclose its source codes in GitHub?
On 6/14/2026 10:50 PM, Mr. Man-wai Chang wrote:
Did you re-use your "little embedded web server" in other projects? Did
it become a part of something bigger?
I used it for many things personally. Actually, on some consulting jobs,
I showed it to some people, some used parts of it. It was more like a
proxy server framework. All in C. But, most of them were way more
interested in me helping them fix some deadlocks and/or potential race conditions in their code. This was way back in very early 2000's.
One of the worst jobs I ever had was for somebody who would lock a mutex
in their io threads loop and call into user code. They said it was fine because of recursive mutex, but they also said it would deadlock from
time to time. It was a fucking nightmare.
On 6/15/2026 3:33 PM, Chris M. Thomasson wrote:
On 6/14/2026 10:50 PM, Mr. Man-wai Chang wrote:
Did you re-use your "little embedded web server" in other projects? Did
it become a part of something bigger?
I used it for many things personally. Actually, on some consulting jobs,
I showed it to some people, some used parts of it. It was more like a
proxy server framework. All in C. But, most of them were way more
interested in me helping them fix some deadlocks and/or potential race
conditions in their code. This was way back in very early 2000's.
One of the worst jobs I ever had was for somebody who would lock a mutex
in their io threads loop and call into user code. They said it was fine
because of recursive mutex, but they also said it would deadlock from
time to time. It was a fucking nightmare.
I have never ever written a server app before, just business-oriented
MIS stuffs (mostly Foxpro/DOS, Foxpro/Windows and Visual Foxpro). The
last time I wrote things related directly to networked operating system
was Novell Netware.
I think I could call and respect you as a software engineeer? :)
I have never ever written a server app before ...
On Mon, 15 Jun 2026 18:37:52 +0800, Mr. Man-wai Chang wrote:
I have never ever written a server app before ...
How hard is it to write an HTTP server?
Here
<https://github.com/python/cpython/blob/main/Lib/http/server.py> is a
pretty functional one (HTTP/1.1 only, no SSL/TLS, but with threading
support) in under 1200 lines of code.
On 6/17/2026 12:30 AM, Lawrence D?Oliveiro wrote:
On Mon, 15 Jun 2026 18:37:52 +0800, Mr. Man-wai Chang wrote:
I have never ever written a server app before ...
How hard is it to write an HTTP server?
Here
<https://github.com/python/cpython/blob/main/Lib/http/server.py> is
a pretty functional one (HTTP/1.1 only, no SSL/TLS, but with
threading support) in under 1200 lines of code.
vs creating a highly scalable and robust one?
| Sysop: | Tetrazocine |
|---|---|
| Location: | Melbourne, VIC, Australia |
| Users: | 11 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 221:37:03 |
| Calls: | 219 |
| Files: | 21,505 |
| Messages: | 84,483 |