403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.182
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/python3/dist-packages/breezy/bzr/smart/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/breezy/bzr/smart/__pycache__/client.cpython-313.pyc
�

p��gg;����SSKJr \R"\"5S5 SSKrSSKJrJrJrJr SSKJrJ	r	 "SS	5r
"S
S5r"SS
\R5r
\
"5\
l"SS5rg)�)�lazy_importz6
from breezy.bzr.smart import request as _mod_request
�N)�debug�errors�hooks�trace�)�message�protocolc�`�\rSrSrSSjrSrSSjrSrSrSr	S	r
S
rSrSr
S
rg)�_SmartClient� Nc��XlUc'S[RRS50Ulg[U5Ulg)z1Constructor.

:param medium: a SmartClientMedium
NsSoftware version�utf-8)�_medium�breezy�__version__�encode�_headers�dict)�self�medium�headerss   �9/usr/lib/python3/dist-packages/breezy/bzr/smart/client.py�__init__�_SmartClient.__init__!s6��
���?�0�&�2D�2D�2K�2K�G�2T�U�D�M� ��M�D�M�c�b�SRURRUR5$)Nz{}({!r}))�format�	__class__�__name__r�rs r�__repr__�_SmartClient.__repr__,s#��� � ����!8�!8�$�,�,�G�Grc
�@�[UUUUUUUS9nUR5$)N)�body�
readv_body�body_stream�expect_response_body)�_SmartClientRequest�call_and_read_response)r�method�argsr&r'r(r)�requests        r�_call_and_read_response�$_SmartClient._call_and_read_response/s4��&�����!�#�!5�
���-�-�/�/rc�R�UR"U/UQ76up4UR"5 U$)z#Call a method on the remote server.)�call_expecting_body�cancel_read_body)rr,r-�resultrs     r�call�_SmartClient.callCs+���3�3�F�B�T�B����!�!�#��
rc�"�URXSS9$)z�Call a method and return the result and the protocol object.

The body can be read like so::

    result, smart_protocol = smart_client.call_expecting_body(...)
    body = smart_protocol.read_body_bytes()
T)r)�r/)rr,r-s   rr2� _SmartClient.call_expecting_bodyIs���+�+�F�t�+�T�Trc�X�[U[5(d[SRU55eUH2n[U[5(aM[SRU55e [U[5(d[SRU55eUR	XUSS9upVU$)�3Call a method on the remote server with body bytes.�&method must be a byte string, not {!r}�#args must be byte strings, not {!r}�"body must be byte string, not {!r}F�r&r)��
isinstance�bytes�	TypeErrorrr/�rr,r-r&�arg�response�response_handlers       r�call_with_body_bytes�!_SmartClient.call_with_body_bytesSs����&�%�(�(��D�K�K�F�S�T�T��C��c�5�)�)�� E� L� L�T� R�S�S���$��&�&��@�G�G��M�N�N�%)�%A�%A��t�%�&B�&
�"���rc�Z�[U[5(d[SRU55eUH2n[U[5(aM[SRU55e [U[5(d[SRU55eUR	XUSS9upVXV4$)r;r<r=r>Tr?r@rDs       r�#call_with_body_bytes_expecting_body�0_SmartClient.call_with_body_bytes_expecting_bodyas����&�%�(�(��D�K�K�F�S�T�T��C��c�5�)�)�� E� L� L�T� R�S�S���$��&�&��@�G�G��M�N�N�%)�%A�%A��t�$�&B�&
�"���+�+rc�<�URUSUSSUSS9up4X44$)Nrr	T)r'r)r8)rr-r&rFrGs     r�call_with_body_readv_array�'_SmartClient.call_with_body_readv_arrayos9��%)�%A�%A���G�T�!�"�X�$�T�&B�&
�"���+�+rc�<�URUSUSSUSS9up4X44$)Nrr	F)r(r)r8)rr-�streamrFrGs     r�call_with_body_stream�"_SmartClient.call_with_body_streamus9��%)�%A�%A���G�T�!�"�X�6��&B�&
�"���+�+rc�V�URRU5RS5$)z�Convert transport into a path suitable for using in a request.

Note that the resulting remote path doesn't encode the host name or
anything but path, so it is only safe to use it in requests sent over
the medium from the matching transport.
r)r�remote_path_from_transportr)r�	transports  rrU�'_SmartClient.remote_path_from_transport{s$���|�|�6�6�y�A�H�H��Q�Qr)rr�N�NNNT)r!�
__module__�__qualname__�__firstlineno__rr#r/r5r2rHrKrNrRrU�__static_attributes__�rrr
r
 sE��	*�H����!�0�(�U��,�,�,�Rrr
c�Z�\rSrSrSrSSjrSrSrSrSr	S	r
S
rSrSr
S
rg)r*�a�Encapsulate the logic for a single request.

This class handles things like reconnecting and sending the request a
second time when the connection is reset in the middle. It also handles the
multiple requests that get made if we don't know what protocol the server
supports yet.

Generally, you build up one of these objects, passing in the arguments that
you want to send to the server, and then use 'call_and_read_response' to
get the response from the server.
Nc�X�XlX lX0lX@lXPlX`lXplgrX)�clientr,r-r&r'r(r))rrbr,r-r&r'r(r)s        rr�_SmartClientRequest.__init__�s)�������	��	�$��&��$8�!rc��UR5 URRRnUcUR	5$URU5$)a(Send the request to the server, and read the initial response.

This doesn't read all of the body content of the response, instead it
returns (response_tuple, response_handler). response_tuple is the 'ok',
or 'error' information, and 'response_handler' can be used to get the
content stream out.
)�_run_call_hooksrbr�_protocol_version�"_call_determining_protocol_version�_call)r�protocol_versions  rr+�*_SmartClientRequest.call_and_read_response�sK��	
�����;�;�.�.�@�@���#��:�:�<�<��:�:�.�/�/rc��URcS[R;ag[RRUR5nUS;agUS;ag[R"SRXR55 g)z/Check if the current method is re-entrant safe.�noretryF)�read�idem�semiT)�semivfs�mutaterQz&Unknown request type: {} for method {})
r(r�debug_flags�_mod_request�request_handlers�get_infor,r�mutterr)r�request_types  r�_is_safe_to_send_twice�*_SmartClientRequest._is_safe_to_send_twice�su�����'�9��8I�8I�+I��#�4�4�=�=�d�k�k�J���3�3���:�:��
���4�;�;�L�+�+�V�	
�rc��[RS(dg[URURUR
URURR5n[RSHnU"U5 M
 g)Nr5)	r
r�CallHookParamsr,r-r&r'rbr)r�params�hooks   rre�#_SmartClientRequest._run_call_hooks�s`���!�!�&�)����K�K����D�I�I�t������@S�@S�
��!�&�&�v�.�D���L�/rc��URU5nURURS9nX24$![Ra� UR
RR5 UR5(de[R"SRUR55 [R"5 URU5upBURU5 URURS9nX24$f=f)z�We know the protocol version.

So this just sends the request, and then reads the response. This is
where the code will be to retry requests if the connection is closed.
)�expect_bodyz3ConnectionReset reading response for {!r}, retrying)�_send�read_response_tupler)r�ConnectionResetrbr�resetrxr�warningrr,�log_exception_quietly�_construct_protocol�_send_no_retry)rrirG�response_tuple�encoders     rrh�_SmartClientRequest._call�s��� �:�:�&6�7��	�-�A�A� �5�5�B��N�$�1�1���%�%�	��K�K���%�%�'��.�.�0�0���M�M�E�L�L��K�K��
�

�'�'�)�(,�(@�(@�AQ�(R�%�G�����(�-�A�A� �5�5�B��N��1�1�	�s�/�CD�Dc�4�SnSH_nUS:Xa%URRRS5 URU5up4X RRlX44s $ [
R"S[U5-5e![
RaKn[R"SUS35 URRR5 UnSnAM�SnAf[
Ra X RRlef=f)z�Determine what protocol the remote server supports.

We do this by placing a request in the most recent protocol, and
handling the UnexpectedProtocolVersionMarker from the server.
N)r�r�)r	�z3Server does not understand Bazaar network protocol z4, reconnecting.  (Upgrade the server to avoid this.)zServer is not a Bazaar server: )
rbr�_remember_remote_is_beforerhrfr�UnexpectedProtocolVersionMarkerrr��
disconnect�ErrorFromSmartServer�SmartProtocolError�str)r�last_errrir�rG�errs      rrg�6_SmartClientRequest._call_determining_protocol_version�s���� &���1�$����#�#�>�>�v�F�
8�37�:�:�>N�3O�0��"9I���#�#�5�%�7�7�/!'�0�'�'�-��H�
�=�
�	
��%�9�9�	
��
�
�I�JZ�I[�\J�J�����#�#�.�.�0������.�.�
�9I���#�#�5��	
�s�B
�
D�AC$�$3Dc�v�URRR5nUS:XaT[R"U5n[
R"5n[R"USS9nURXR5 X44$US:Xa[R"U5nUnX44$[R"U5nUnX44$)z6Build the encoding stack for a given protocol version.rT)�expect_version_markerr�)rbr�get_requestr�ProtocolThreeRequesterr
�ConventionalResponseHandler�ProtocolThreeDecoder�setProtoAndMediumRequest�SmartClientRequestProtocolTwo�SmartClientRequestProtocolOne)r�versionr.�request_encoderrG�response_protos      rr��'_SmartClientRequest._construct_protocols����+�+�%�%�1�1�3���a�<�&�=�=�g�F�O�&�B�B�D��%�:�:� ���N�
�5�5�n�N��0�0�
��\�&�D�D�W�M�O�.���0�0�'�D�D�W�M�O�.���0�0rc��URU5up#URU5 U$![Ra� URR
R
5 S[R;dURbUR(ae[R"SRUR55 [R"5 URU5up#URU5 U$f=f)a7Encode the request, and send it to the server.

This will retry a request if we get a ConnectionReset while sending the
request to the server. (Unless we have a body_stream that we have
already started consuming, since we can't restart body_streams)

:return: response_handler as defined by _construct_protocol
rlz&ConnectionReset calling {!r}, retrying)r�r�rr�rbrr�rrrr(�body_stream_startedrr�rr,r�)rrir�rGs    rr��_SmartClientRequest._sends���%)�$<�$<�=M�$N�!��	)�����(�. ���-�%�%�	)�
�K�K���%�%�'��U�.�.�.�� � �,��1L�1L���M�M�B�I�I�$�+�+�V�W��'�'�)�(,�(@�(@�AQ�(R�%�G�����(���-	)�s�(�CC?�>C?c��URURR5 URbeURb[S5eURb[S5eURUR4UR-UR5 gURbMURb[S5eURUR4UR-UR5 gURb5URUR4UR-UR5 gUR"UR/URQ76 g)z+Just encode the request and try to send it.Nz+body and readv_body are mutually exclusive.z,body and body_stream are mutually exclusive.z2readv_body and body_stream are mutually exclusive.)
�set_headersrbrr&r'�AssertionErrorr(rHr,r-rNrRr5)rr�s  rr��"_SmartClientRequest._send_no_retryBs�����D�K�K�0�0�1��9�9� ����*�$�%R�S�S����+�$�%S�T�T��(�(�$�+�+��$�)�)�)C�T�Y�Y�O�
�_�_�
(����+�$�H���
�.�.��������*�D�O�O�
��
�
�
)��)�)�4�;�;�.�4�9�9�*D�d�FV�FV�W��L�L����1�t�y�y�1r)r-r&r(rbr)r,r'rY)r!rZr[r\�__doc__rr+rxrerhrgr�r�r�r]r^rrr*r*�sD��
�"���!�9�$
0��"�2�8!
�F1�$" �H2rr*c��\rSrSrSrSrg)�SmartClientHooksiYc�l�[RRUSS5 URSSS5 g)Nzbreezy.bzr.smart.clientz_SmartClient.hooksr5z�Called when the smart client is submitting a request to the smart server. Called with a breezy.bzr.smart.client.CallHookParams object. Streaming request bodies, and responses, are not accessible.)r�Hooksr�add_hookr"s rr�SmartClientHooks.__init__Zs3��
�����T�#<�>R�S��
�
��
�
�
	
rr^N)r!rZr[r\rr]r^rrr�r�Ys��	
rr�c�,�\rSrSrSrSrSrSrSrg)r{iic�@�XlX lX0lX@lXPlgrX)r,r-r&r'r)rr,r-r&r'rs      rr�CallHookParams.__init__js�����	��	�$���rc��URR5VVs0sHupUcM
X_M nnnSRURRU5$s snnf)Nz	<{} {!r}>)�__dict__�itemsrr r!)r�k�v�attrss    rr#�CallHookParams.__repr__qsP��"&�-�-�"5�"5�"7�I�"7�$�!�1����"7��I��!�!�$�.�.�"9�"9�5�A�A��Js
�	A�Ac�t�[U[U55(d[$URUR:H$rX)rA�type�NotImplementedr��r�others  r�__eq__�CallHookParams.__eq__us,���%��d��,�,�!�!��}�}����.�.rc��X:X+$rXr^r�s  r�__ne__�CallHookParams.__ne__zs��� � r)r-r&rr,r'N)	r!rZr[r\rr#r�r�r]r^rrr{r{is���B�/�
!rr{)�r�globalsrrrrrr
rr
r*r�r�r{r^rr�<module>r�ss��"�����I����+�+��bR�bR�JQ2�Q2�h

�u�{�{�

�&�'���!�!r

Youez - 2016 - github.com/yon3zu
LinuXploit