perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Schmidt <>
Subject APR::Socket::close()
Date Fri, 03 Jul 2009 10:29:16 GMT
The documentation says close() is part of the "unsupported API" of
APR::Socket which will be "finalized as a need arises". Though not
absolutely certain, I guess I have a need for that function:

I want to accept a POST-request from the client, read some content and
consequently decide that data should not be transferred. I'd like to
close the socket, then. When I simply call exit() in my perl handler the
client data is read by mod_perl, as documented.

Side question: Why is there no method to get the file descriptor from
mod_perl? I could then use sysread() and such - including close().


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message