view release on metacpan or search on metacpan
lib/Amazon/SQS/Client.pm view on Meta::CPAN
=head2 deleteMessage
deleteMessage( request )
The C<DeleteMessage> action unconditionally removes the specified message
from the specified queue. Even if the message is locked by another
reader due to the visibility timeout setting, it is still deleted from
the queue.
Returns an C<Amazon::SQS::Model::DeleteMessageResponse> object.
view all matches for this distribution
view release on metacpan or search on metacpan
Amethyst/Brain/Infobot/Module/Zippy.pm view on Meta::CPAN
RHAPSODY in Glue!
SANTA CLAUS comes down a FIRE ESCAPE wearing bright blue LEG WARMERS ... He scrubs the POPE with a mild soap or detergent for 15 minutes, starring JANE FONDA!!
Send your questions to ``ASK ZIPPY'', Box 40474, San Francisco, CA 94140, USA
SHHHH!! I hear SIX TATTOOED TRUCK-DRIVERS tossing ENGINE BLOCKS into empty OIL DRUMS ...
Should I do my BOBBIE VINTON medley?
Should I get locked in the PRINCICAL'S OFFICE today -- or have a VASECTOMY??
Should I start with the time I SWITCHED personalities with a BEATNIK hair stylist or my failure to refer five TEENAGERS to a good OCULIST? Sign my PETITION.
So this is what it feels like to be potato salad
So, if we convert SUPPLY-SIDE SOYABEAN FUTURES into HIGH-YIELD T-BILL INDICATORS, the PRE-INFLATIONARY risks will DWINDLE to a rate of 2 SHOPPING SPREES per EGGPLANT!!
Someone in DAYTON, Ohio is selling USED CARPETS to a SERBO-CROATIAN
Sometime in 1993 NANCY SINATRA will lead a BLOODLESS COUP on GUAM!!
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amon2/Setup/Asset/jQuery.pm view on Meta::CPAN
}
sub files {
return {
'js/jquery-3.6.1.min.js' => '/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof windo...
'
}
;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Android/ElectricSheep/Automator.pm view on Meta::CPAN
enquiry and subsequent control can commence.
If this is not called and neither C<device-is-connected =E<gt> 1>
is specified as a parameter to the constructor, then
the functionality will be limited and access
to functions like C<swipe()>, C<open_app()>, etc.
will be blocked until the caller signals that
a device is now connected to the desktop.
Using L</connect_device($params)> to specify which device
to target in the case of multiple devices
connected to the desktop will also call this
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Anki/Import.pm view on Meta::CPAN
=head3 Getting the most from C<Anki::Import>
By itself, C<Anki::Import> will make it easier for you to format and
input your notes especially if you do a lot of basic HTML formatting. However,
the huge productivity gains of C<Anki::Import> can only be unlocked by getting
proficient wih your text editor of choice.
For example, you can generate templates for each of the note types you use to
make data entry exceptionally painless. And with a text editor like vim, you
can automate the generation of the formatting codes used by C<Anki::Import>
view all matches for this distribution
view release on metacpan or search on metacpan
examples/test.pl view on Meta::CPAN
if ( $hdr->{Status} !~ m/2/ ) {
$client->emit( 'error', "$hdr->{Status}: $hdr->{Reason}" );
$client->exit;
}
else {
print "$hdr->{Status}: locked room\n";
$client->unlock(
'535881',
sub {
my ( $body, $hdr ) = @_;
if ( $hdr->{Status} !~ m/2/ ) {
$client->emit( 'error',
"$hdr->{Status}: $hdr->{Reason}" );
$client->exit;
}
else {
print "$hdr->{Status}: unlocked room\n";
$client->exit;
}
}
);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/ConnPool.pm view on Meta::CPAN
$self->{index} = 0;
}
my $retval = $self->{_payload}->[$self->{index}];
if ($retval->locked()) {
$self->{locked}->{$self->{index}} = 1;
$retval = $self->get_free_connection($self->{index});
}
else {
delete $self->{locked}->{$self->{index}};
}
if (wantarray) {
$self->{index}++;
return ($index, $retval);
lib/AnyEvent/ConnPool.pm view on Meta::CPAN
my $retval = undef;
my @balanced_array = $self->balance_array($desired_index);
for my $i (@balanced_array) {
my $conn = $self->{_payload}->[$i];
unless ($conn->locked) {
$retval = $conn;
$self->{index} = $i;
last;
}
}
lib/AnyEvent/ConnPool.pm view on Meta::CPAN
my ($index, $constructor) = ($opts{index}, $opts{constructor});
my $unit = {
_conn => $object,
_locked => 0,
_index => $index,
_constructor => $constructor,
};
bless $unit, $class;
lib/AnyEvent/ConnPool.pm view on Meta::CPAN
=cut
sub lock {
my ($self) = @_;
$self->{_locked} = 1;
return 1;
}
=item B<unlock>
lib/AnyEvent/ConnPool.pm view on Meta::CPAN
=cut
sub unlock {
my ($self) = @_;
delete $self->{_locked};
return 1;
}
=item B<locked>
Returns true if connection is locked.
if ($connection->locked()) {
...
}
=cut
sub locked {
my ($self) = @_;
return $self->{_locked};
}
sub index {
my ($self) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/CouchDB.pm view on Meta::CPAN
Main programs are "allowed to call C<recv> blockingly", according to the
author of L<AnyEvent>.
=item or you're in a Coro + AnyEvent environment.
When you call C<recv> inside a coroutine, only that coroutine is blocked
while other coroutines remain active. Thus, the program as a whole is
still responsive.
=back
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Digest.pm view on Meta::CPAN
This method uses blocking wait + C<addfile_async()>.
=head2 C<addfile_base()>
Forwarded to C<addfile()> in the base module. If you need to avoid blocking wait somewhere, this might be helpful.
However, during the call, other L<AnyEvent> watchers are blocked.
=head1 SEE ALSO
=over 4
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/FileLock.pm view on Meta::CPAN
=item len => $len
When C<fcntl> is selected as the lock type, this three additional
arguments can be used to define the section of the file that has to be
locked. See L<fcntl(2)> for the details.
=back
=head1 SEE ALSO
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Filesys/Watcher/ReadDirectoryChanges/Queue.pod view on Meta::CPAN
handle is nonsense (currently an arbitrary number of "1" characters).
It is also dangerous, at least for single-threaded applications, because the
call will block if there is no data available in the queue. For a
single-threaded application that would lead to a deadlock, because while
being blocked, no data can be enqueued.
=item B<enqueue(ITEMS)>
See L<Thread;:Queue/enqueue>.
view all matches for this distribution
view release on metacpan or search on metacpan
(this can be suppressed by using C<undef> for these headers in which case
they won't be sent at all).
You really should provide your own C<User-Agent:> header value that is
appropriate for your program - I wouldn't be surprised if the default
AnyEvent string gets blocked by webservers sooner or later.
Also, make sure that your headers names and values do not contain any
embedded newlines.
=item timeout => $seconds
view all matches for this distribution
view release on metacpan or search on metacpan
.travis.yml view on Meta::CPAN
- prove -blv $(test-dirs)
branches:
except:
- /^wip\//
- /^blocked/
#notifications:
# email: false
# irc:
# channels:
# - "irc.perl.org#moo-smoke"
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/JSONRPC/Lite/Client.pm view on Meta::CPAN
Main programs are "allowed to call C<recv> blockingly", according to the
author of L<AnyEvent>.
=item or you're in a Coro + AnyEvent environment.
When you call C<recv> inside a coroutine, only that coroutine is blocked
while other coroutines remain active. Thus, the program as a whole is
still responsive.
=back
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/JSONRPC/HTTP/Client.pm view on Meta::CPAN
Main programs are "allowed to call C<recv> blockingly", according to the
author of L<AnyEvent>.
=item or you're in a Coro + AnyEvent environment.
When you call C<recv> inside a coroutine, only that coroutine is blocked
while other coroutines remain active. Thus, the program as a whole is
still responsive.
=back
view all matches for this distribution
view release on metacpan or search on metacpan
MP/Intro.pod view on Meta::CPAN
=head1 Message Passing for the Non-Blocked Mind
=head1 Introduction and Terminology
This is a tutorial about how to get the swing of the L<AnyEvent::MP>
module family, which allows processes to transparently pass messages to
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/MPRPC/Client.pm view on Meta::CPAN
Main programs are "allowed to call C<recv> blockingly", according to the
author of L<AnyEvent>.
=item or you're in a Coro + AnyEvent environment.
When you call C<recv> inside a coroutine, only that coroutine is blocked
while other coroutines remain active. Thus, the program as a whole is
still responsive.
=back
view all matches for this distribution
view release on metacpan or search on metacpan
share/fixed_amqp0-8.xml view on Meta::CPAN
no due to security settings.
</constant>
<constant name="not found" value="404" class="soft error">
The client attempted to work with a server entity that does not exist.
</constant>
<constant name="resource locked" value="405" class="soft error">
The client attempted to work with a server entity to which it has
no access because another client is working with it.
</constant>
<constant name="frame error" value="501" class="hard error">
The client sent a malformed frame that the server could not decode.
share/fixed_amqp0-8.xml view on Meta::CPAN
access the queue.
</doc>
<doc name = "rule" test = "amq_file_00">
If the server cannot grant exclusive access to the queue when asked,
- because there are other consumers active - it MUST raise a channel
exception with return code 405 (resource locked).
</doc>
</field>
<field name = "nowait" type = "bit">
do not send a reply method
share/fixed_amqp0-8.xml view on Meta::CPAN
access the queue.
</doc>
<doc name = "rule" test = "amq_file_00">
If the server cannot grant exclusive access to the queue when asked,
- because there are other consumers active - it MUST raise a channel
exception with return code 405 (resource locked).
</doc>
</field>
<field name = "nowait" type = "bit">
do not send a reply method
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Radius/Client.pm view on Meta::CPAN
$client1->on_ready($cv);
$client2->on_ready($cv);
$client3->on_ready($cv);
$cv->recv;
Will be blocked until all clients finish their queue.
=item destroy()
Destroy the internal socket handle. Must be called when object is no longer required.
When called from callback, it is recommended to wrap this call into AnyEvent::postpone { ... } block.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Tools.pm view on Meta::CPAN
=head1 FUNCTIONS
=head2 mutex
returns unlocked mutex.
This object provides the following methods:
=head3 lock(CODEREF)
You declare that You want to lock mutex. When it is possible the mutex will
be locked and Your callback will be called.
If the method is called in non-void context it returns guard object which can
be destroyed. So if You want You can cancel Your lockrequest.
Example:
lib/AnyEvent/Tools.pm view on Meta::CPAN
undef $guard; # unlock mutex
});
The callback receives a guard (see L<AnyEvent::Util#guard>) which unlocks the
mutex. Hold the guard while You need locked resourse.
=head3 is_locked
Returns B<TRUE> if mutex is locked now. Usually You shoudn't
use the function.
=head2 rw_mutex
returns unlocked read-write mutex.
This object provides the following methods:
=head3 rlock(CODEREF)
You declare that You want to lock mutex for reading. When it is
possible the mutex will be locked and Your callback will be called.
There may be a lot of read processes running simultaneously
that catch the lock.
=head3 wlock(CODEREF).
You declare that You want to lock mutex for writing. When it is
possible the mutex will be locked and Your callback will be called.
There may be only one write process that catches the lock.
Both callbacks receive a guard to hold the mutex locked.
=head3 rlock_limit(NUMBER)
Get/Set count limit for rlock. If an rlock request is come and this limit
is reached the request will be queued.
=head3 is_locked
Returns B<TRUE> if the mutex has 'read' or 'write' lock status.
=head3 is_rlocked
Returns B<TRUE> if the mutex has 'read' lock status.
B<Important>: this method returns B<FALSE> if the mutex is
wlocked (L<is_wlocked>), so if You want to know if any lock
is set, use the function L<is_locked>.
=head3 is_wlocked
Returns B<TRUE> if the mutex has 'write' lock status.
Usually You shoudn't use is_[rw]?locked functions.
=head2 async_repeat(COUNT, CALLBACK [, DONE_CALLBACK ])
Repeats calling Your callback(s).
view all matches for this distribution
view release on metacpan or search on metacpan
t/2_blocking.t view on Meta::CPAN
while (my ($domain, $rule) = each(%rules)) {
whois $domain, "$host:$port", sub {
my ($info, $srv) = @_;
is($info, $rule->{info}, "$domain info");
ok(time()-$start < $rule->{sleep}+2, "$domain was not blocked ");
$cv->end;
};
}
$cv->recv;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/XMPP/Error/MUC.pm view on Meta::CPAN
my ($self) = @_;
if ($self->{presence_error}) {
my %mapping = (
'not-authorized' => 'password_required',
'forbidden' => 'banned',
'item-not-found' => 'room_locked',
'not-allowed' => 'room_not_creatable',
'not-acceptable' => 'use_reserved_nick',
'registration-required' => 'not_on_memberlist',
'conflict' => 'nickname_in_use',
'service-unavailable' => 'room_full',
lib/AnyEvent/XMPP/Error/MUC.pm view on Meta::CPAN
Entering a room Inform user that he or she is banned from the room
(Condition: forbidden, Code: 403)
=item room_locked
Entering a room Inform user that the room does not exist and someone
is currently creating it.
(Condition: item-not-found, Code: 404)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/IO.pm view on Meta::CPAN
automatically - that is, something I<pushes> data towards your file
handle, without you having to do anything. Non-blocking means that if
your operating system currently has no data (or EOF, or some error)
available for you, it will not wait ("block") as it would normally do,
but immediately return with an error (e.g. C<EWOULDBLOCK> - "I would have
blocked, but you forbid it").
Your program can then wait for data to arrive by other means, for example,
an I/O watcher which tells you when to re-attempt the read, after which it
can try to read again, and so on.
view all matches for this distribution
view release on metacpan or search on metacpan
$status = $response->{Status};
}
# X: we DESTROY in register_cleanup, but if we are filtering, and we
# handle a virtual request to an asp app, we need to free up the
# the locked resources now, or the session requests will collide
# a performance hack would be to share an asp object created between
# virtual requests, but don't worry about it for now since using SSI
# is not really performance oriented anyway.
#
# If we are not filtering, we let RegisterCleanup get it, since
a time may run, per user $Session, with sessions allowed.
Serialized requests to the session object is the Microsoft ASP way,
but is dangerous in a production environment, where there is risk
of long-running or run-away processes. If these things happen,
a session may be locked for an indefinite period of time. A user
STOP button should safely quit the session however.
PerlSetVar SessionSerialize 0
=item SessionCount
$Session->{count}++;
$Session->{count}++;
$Session->{count}++;
$Session->UnLock();
This sequence causes $Session to be locked and unlocked only
1 time, instead of the 6 times that it would be locked otherwise,
2 for each increment with one to read and one to write.
Because of flushing issues with SDBM_File and DB_File databases,
each lock actually ties fresh to the database, so the performance
savings here can be considerable.
Note that if you have SessionSerialize set, $Session is
already locked for each script invocation automatically, as if
you had called $Session->Lock() in Script_OnStart. Thus you
do not need to worry about $Session locking for performance.
Please read the section on SessionSerialize for more info.
=item $Session->UnLock()
API Extension. Unlocks the $Session explicitly. If you do not call this,
$Session will be unlocked automatically at the end of the
script.
=back
=head2 $Response Object
=item $Application->Lock()
Locks the Application object for the life of the script, or until
UnLock() unlocks it, whichever comes first. When $Application
is locked, this guarantees that data being read and written to it
will not suddenly change on you between the reads and the writes.
This and the $Session object both lock automatically upon
every read and every write to ensure data integrity. This
lock is useful for concurrent access control purposes.
Be careful to not be too liberal with this, as you can quickly
create application bottlenecks with its improper use.
=item $Application->UnLock()
Unlocks the $Application object. If already unlocked, does nothing.
=item $Application->GetSession($sess_id)
This NON-PORTABLE API extension returns a user $Session given
a session id. This allows one to easily write a session manager if
+$Server->HTMLEncode(\$data) API extension, now can take
scalar ref, which can give a 5% improvement in benchmarks
for data 100K in size.
-Access to $Application is locked when Application_OnEnd &
Application_OnStart is called, creating a critical section
for use of $Application
++MLDBM::Sync used now for core DBM support in Apache::ASP::State.
This drastically simplifies/stabilizes the code in there
view all matches for this distribution
view release on metacpan or search on metacpan
Client/Client.pm view on Meta::CPAN
{
$self->{_requests}->{$index}->{data} .= $buf;
}
} else #no data to read yet
{
if($! == EAGAIN()) #socket would have blocked
{
#keep going until there is more data on the socket
} else
{
$self->{_requests}->{$index}->{status} = REQ_SUCCESS;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AppSamurai.pm view on Meta::CPAN
=head3 I<IPFailures> C<COUNT:SECONDS>
(Defualt: undef)
Block further login attempts from IPs that send C<COUNT> failures with
no more than C<SECONDS> seconds between each subsequent failure. Once
blocked, the block will remain in effect till at least C<SECONDS> has
elapsed since the last connection attempt.
=head3 I<AuthUnique> C<0|1>
(Default: 0)
view all matches for this distribution
view release on metacpan or search on metacpan
AuthChecker.pm view on Meta::CPAN
$r->log_error("Stats IP: $remote_ip Attempts: $failed_attempts")
if ($debug);
if ($failed_attempts >= $max_failed_attempts) {
$r->log_error("IP: $remote_ip is blocked. ".
"Auth attempts: $failed_attempts");
$ignore_this_request = 1;
}
} else {
$r->log_error("IP: $remote_ip not found in DB.")
AuthChecker.pm view on Meta::CPAN
Apache::AuthChecker - mod_perl based authentication module used to prevent
brute force attacks via HTTP authorization. It remembers IP addresses of any
user trying to authenticate for certain period of time. If user
runs out limit of failed attempts to authenticate - all his authentication
requests will be redirected to some URI (like this: /you_are_blocked.html).
Requirements:
1. Apache 1.3.x (2.x) with mod_perl 1.2x (2.x) enabled
2. IPC::Shareable perl module version 0.60 by BSUGARS. Probably it
AuthChecker.pm view on Meta::CPAN
AuthUserFile - path to your passwords htpasswd-made file (REQUIRED).
MaxFailedAttempts - Maximum attempts we give user to mistype password
(OPTIONAL, default - 8).
RedirectURI - URI (not URL!) to redirect attacker then he runs out
attempts limit ((OPTIONAL, default - /).
For example: /you_are_blocked.html
=head1 DESCRIPTION
Apache::AuthChecker - mod_perl based authentication module used to prevent
brute force attacks via HTTP authorization. It remembers IP addresses of any
user trying to authenticate for certain period of time. If user from this IP
runs out limit of failed attempts to authenticate - all his authentication
requests will be redirected to some URI (like this: /you_are_blocked.html).
=head1 PREREQUISITES
1. Apache 1.3.x with mod_perl 1.2x enabled
2. IPC::Shareable perl module version 0.60 by BSUGARS. Probably it
view all matches for this distribution
view release on metacpan or search on metacpan
AuthCookiePAM.pm view on Meta::CPAN
return undef;
}
else { # Now check if account is valid
$res = $pamh->pam_acct_mgmt();
if ( $res == PAM_ACCT_EXPIRED() ) {
$r->log_error("ERROR: Account for $user is locked. Contact your Administrator.\n");
$r->subprocess_env('AuthenReason', 'Account for $user is locked. Contact your Administrator.');
return 'bad';
}
if ( $res == PAM_NEW_AUTHTOK_REQD() ) {
$r->log_error("ERROR: PAssword for $user expired. Change Password\n");
$r->subprocess_env('AuthenReason', 'Password Expired. Please Change your password.');
view all matches for this distribution
view release on metacpan or search on metacpan
AuthCookieURL.pm view on Meta::CPAN
# Or return a flag that authen_ses_key can look for
return 'invalid:account_expired';
# Or return a message that will be placed in a 'Reason' cookie
return ('','User Blocked');
}
sub authen_ses_key ($$$) {
my ($self, $r, $session) = @_;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/AxKit/Plugin/Upload.pm view on Meta::CPAN
$destdir = $r->document_root.'/'.$destdir if substr($destdir,0,1) ne '/';
my $format = lc($r->dir_config('AxUploadFormat')) || 'html';
$file = $destdir."/".$upload_id.".".$format;
local (*FH);
sysopen(FH,$file.".lck",O_RDWR) || return undef;
my $unlocked = flock(FH,LOCK_EX|LOCK_NB);
close(FH);
return !$unlocked;
}
sub upload_handler_html {
my ($upload, $buf, $len, $hook_data) = @_;
my ($sizedone, $lasttime) = @$hook_data;
lib/Apache/AxKit/Plugin/Upload.pm view on Meta::CPAN
$location = "$destloc/$upload_id.$format";
return OK unless $upload_id;
return OK unless $r->method eq 'POST';
$lock = new IO::Handle;
sysopen($lock,$file.".lck",O_RDWR|O_CREAT) || return OK;
my $unlocked = flock($lock,LOCK_EX|LOCK_NB);
return OK if !$unlocked;
$running = $upload_id;
# from Apache::RequestNotes
my $maxsize = $r->dir_config('MaxPostSize') || 1024;
my $uploads = $r->dir_config('DisableUploads') =~ m/Off/i ? 0 : 1;
view all matches for this distribution