Have you ever written your own web server? You should – it’s easier than you think, and it won’t take more than half an hour.
I’m not talking about building everything from scratch (that will take more time). Instead, I mean putting together something quick using ready-made parts.
What if you have a very specific problem in mind, and are not sure how to solve it by configuring an existing server? Or what if you suspect your server is actually part of the problem?
Problem: you have a client that’s sending data to your server, but this data mysteriously disappears. Other servers are receiving the data just fine, so you suspect the problem is on your end.
In my case, I had a mysterious problem with Bugsink’s event handling for the NodeJS client: I got an exception in the parsing of event envelopes, which I quickly traced back to request.read() returning an empty result, i.e. b""
This led me to suspect a client-side error, and way too much time debugging on that side. Way too much, because that client was used against other servers without any problems.