logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MR::IProto::Cluster::Server - server

Attributes

       host
           Host name or IP address.

       port
           Port number.

       weight
           Server weight.

       connect_timeout
           Timeout of connect operation.

       timeout
           Timeout of read and write operations.

       tcp_nodelay
           Enable TCP_NODELAY.

       tcp_keepalive
           Enable SO_KEEPALIVE.

       max_parallel
           Max amount of simultaneous request.

       active
           Is server used in balancing.

Description

       This class is used to implement all communication with one server.

Name

       MR::IProto::Cluster::Server - server

Protected Methods

       _send_started( $sync, $message, $data )
           This method is called when message is started to send.

       _recv_finished( $sync, $message, $data, $error )
           This method is called when message is received.

Public Methods

       disconnect_all
           Class method used to disconnect all iproto-connections. Very useful in case of fork().

See Also

       MR::IProto, MR::IProto::Cluster.

perl v5.30.3                                       2020-07-21                   MR::IProto::Cluster::Server(3pm)

See Also