in reply to Re: Check if a scalar contains a complete HTTP request
in thread Check if a scalar contains a complete HTTP request
Handling of the non-blocking sockets is not the issue, data from each client already flows beautifully into buffers thanks to IO::Select/sysread/syswrite and that bit works like a charm. It's just that I have about 60-70 lines of code just to grab HTTP requests from those buffers and besides being an eyesore I'm pretty sure it will fall over pretty soon if exposed to the real world.
The main loop for each client/server socket pair kind of goes like this:This is for SSL inspection if you didn't already guess, the prototype works but I'm trying to make it more robust.
I got 99 problems, most of them have to do with printers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check if a scalar contains a complete HTTP request
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 | |
by noxxi (Pilgrim) on May 23, 2017 at 19:47 UTC |