in reply to Check if a scalar contains a complete HTTP request
Instead of doing this myself, I would look at one of the asynchronous frameworks, which all can handle that.
See threads, AnyEvent, Mojolicious and IO::Async. There likely are more, but I boldly assume that all of them handle HTTP requests incoming and outgoing.
If you have too much code written for your custom socket to rewrite for another framework, then running the HTTP part in a thread or separate process might be an approach that gives you only complete requests that can be read blocking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check if a scalar contains a complete HTTP request
by FloydATC (Deacon) on May 20, 2017 at 11:02 UTC | |
by Marshall (Canon) on May 20, 2017 at 16:14 UTC | |
by FloydATC (Deacon) on May 22, 2017 at 07:57 UTC | |
by Marshall (Canon) on May 22, 2017 at 19:36 UTC | |
by FloydATC (Deacon) on May 23, 2017 at 06:23 UTC | |
|