Hi there,
I'm trying to implement a very simple HTTP server for my own client. I tried the example provided. Unfortunately, it is still leaking as bad as 100 megabytes for 100-200 requests. It's also very slow processing requests even when it returns the very same file every time. I'm stuck. Please help! Any ideas what to change?
I'm trying to run it on Windows and FreeBSD. On Windows platform it has a bug described here
HTTP::Daemon not working in threads? regarding stuck threads.
I'm using apache2(worker-mpm)/mod_perl2/perl(threads) right now to run my server-side script. Its performance is not what I expect even after numerous optimizations. That's why I was trying to implement a simple server to process these requests. But right now it's 10(ten) times slower than the current system.
Thank you!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.