Hey,
For example, in POE::Component::Client::HTTP
(http://search.cpan.org/~rcaputo/POE-Component-Client-HTTP-0.88/lib/POE/Component/Client/HTTP.pm
), the default max_per_host is 4.
So is it always safe to do the following? (i.e. is the handler
"response_handler" synchronized?)
my $obj = MyClass->new(); # has member variable $data;
...
sub response_handler {
$obj->{data} = RANDOM_NUM;
print $obj->{data}; # should princt exactly the RANDOM_NUM above,
not the other RANDOM_NUM set by other thread/process
}