403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/grpc/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/grpc/_common.pyc
a

K��f��"@s�dZddlZddlZddlmZmZmZmZmZddl	Z	ddl
mZddlm
Z
ddlmZe�e�Zejje	jjejje	jjejje	jjejje	jjejje	jjiZejj e	jj!ejj"e	jj#ejj$e	jj%ejj&e	jj'ejj(e	jj)ejj*e	jj+ejj,e	jj-ejj.e	jj/ejj0e	jj1ejj2e	jj3ejj4e	jj5ejj6e	jj7ejj8e	jj9ejj:e	jj;ejj<e	jj=ejj>e	jj?ejj@e	jjAiZBdd�eB�C�D�ZDd	ZEd
ZFeeGd�dd
�ZHeeId�dd�ZJeeee
dfeIed�dd�ZKeeeeGd�dd�ZLeGee
ed�dd�ZMeIeIeId�dd�ZNedeOfePeegdfd�dd �ZQd'edeOfegeOfeePeegdfeOd!�d"d#�ZReIeSeSd$�d%d&�ZTdS)(zShared implementation.�N)�Any�AnyStr�Callable�Optional�Union)�cygrpc)�DeserializingFunction)�SerializingFunctioncCsi|]\}}||�qS�r
)�.0�cygrpc_code�	grpc_coder
r
�p/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/grpc/_common.py�
<dictcomp>6s�rg�������?zjFailed to bind to address %s; set GRPC_VERBOSITY=debug environment variable to see detailed error message.)�s�returncCst|t�r|S|�d�SdS)N�utf8)�
isinstance�bytes�encode)rr
r
rrCs
r)�brcCst|t�r|�dd�S|S)Nzutf-8�replace)rr�decode)rr
r
rrJs
r)�message�transformer�exception_messagercCs:|dur|Sz
||�WSty4t�|�YdS0dS)N)�	Exception�_LOGGER�	exception)rrrr
r
r�
_transformPs

r)r�
serializerrcCst||d�S)NzException serializing message!�r)rr r
r
r�	serialize_sr")�serialized_message�deserializerrcCst||d�S)Nz Exception deserializing message!r!)r#r$r
r
r�deserializecs�r%)�group�methodrcCsd�||�S)Nz/{}/{})�format)r&r'r
r
r�fully_qualified_methodksr).��wait_fn�timeout�spin_cbcCs||d�|dur|�dS)N)r,r
r*r
r
r�
_wait_onceos
r.)r+�wait_complete_fnr,r-rcCs`|dur|�s\t|t|�qn>t��|}|�s\t|t��t�}|dkrNdSt|||�q*dS)adBlocks waiting for an event without blocking the thread indefinitely.

    See https://github.com/grpc/grpc/issues/19464 for full context. CPython's
    `threading.Event.wait` and `threading.Condition.wait` methods, if invoked
    without a timeout kwarg, may block the calling thread indefinitely. If the
    call is made from the main thread, this means that signal handlers may not
    run for an arbitrarily long period of time.

    This wrapper calls the supplied wait function with an arbitrary short
    timeout to ensure that no signal handler has to wait longer than
    MAXIMUM_WAIT_TIMEOUT before executing.

    Args:
      wait_fn: A callable acceptable a single float-valued kwarg named
        `timeout`. This function is expected to be one of `threading.Event.wait`
        or `threading.Condition.wait`.
      wait_complete_fn: A callable taking no arguments and returning a bool.
        When this function returns true, it indicates that waiting should cease.
      timeout: An optional float-valued number of seconds after which the wait
        should cease.
      spin_cb: An optional Callable taking no arguments and returning nothing.
        This callback will be called on each iteration of the spin. This may be
        used for, e.g. work related to forking.

    Returns:
      True if a timeout was supplied and it was reached. False otherwise.
    NrTF)r.�MAXIMUM_WAIT_TIMEOUT�time�min)r+r/r,r-�end�	remainingr
r
r�waitys!r5)�address�portrcCs|dkrtt|��n|SdS)akValidates if the port binding succeed.

    If the port returned by Core is 0, the binding is failed. However, in that
    case, the Core API doesn't return a detailed failing reason. The best we
    can do is raising an exception to prevent further confusion.

    Args:
        address: The address string to be bound.
        port: An int returned by core
    rN)�RuntimeError�"_ERROR_MESSAGE_PORT_BINDING_FAILED)r6r7r
r
r�validate_port_binding_result�sr:)NN)U�__doc__�loggingr1�typingrrrrr�grpc�grpc._cythonr�grpc._typingrr	�	getLogger�__name__r�ConnectivityState�idle�ChannelConnectivity�IDLE�
connecting�
CONNECTING�ready�READY�transient_failure�TRANSIENT_FAILURE�shutdown�SHUTDOWN�1CYGRPC_CONNECTIVITY_STATE_TO_CHANNEL_CONNECTIVITY�
StatusCode�ok�OK�	cancelled�	CANCELLED�unknown�UNKNOWN�invalid_argument�INVALID_ARGUMENT�deadline_exceeded�DEADLINE_EXCEEDED�	not_found�	NOT_FOUND�already_exists�ALREADY_EXISTS�permission_denied�PERMISSION_DENIED�unauthenticated�UNAUTHENTICATED�resource_exhausted�RESOURCE_EXHAUSTED�failed_precondition�FAILED_PRECONDITION�aborted�ABORTED�out_of_range�OUT_OF_RANGE�
unimplemented�
UNIMPLEMENTED�internal�INTERNAL�unavailable�UNAVAILABLE�	data_loss�	DATA_LOSS�!CYGRPC_STATUS_CODE_TO_STATUS_CODE�items�!STATUS_CODE_TO_CYGRPC_STATUS_CODEr0r9rr�strrrr"r%r)�bool�floatr.r5�intr:r
r
r
r�<module>s�
�	�����
�
�

�.

Youez - 2016 - github.com/yon3zu
LinuXploit