Taint mode slows down LWP::UserAgent->get significantly

A

arz

Hi,

I've got a CGI script that retrieves an approx. 8MB file from a server
and does some checking on it before returning a result. I download the
file using LWP::UserAgent. I have taint-checking enabled by default to
verify CGI script arguments, but it appears taint-checking
significantly slows down my $ua->get(). With -T it takes about 8-9
seconds before $ua->get() returns. Without -T, it's about wire-speed.

Are taint-mode checks being done on all the HTTP data as it comes in?

Thanks!

Arnoud.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top