![]() ![]() This method will not re-use existingĬonnection from the pool. New_connection ( address='feedback_sandbox', certificate=None, **cert_params ) ¶ cert_params (kwargs): BaseCertificate arguments, used if certificate instance is not given.certificate ( BaseCertificate): provider’s certificate instance.address (str or tuple): target address.You can provide APNs address as (hostname, port) tuple or as Session caches connection descriptors, that remain open after use.Ĭaching saves SSL handshaking time. Get_connection ( address='push_sanbox', certificate=None, **cert_params ) ¶ pool_options (kwargs): passed as-is to the pool class on instantiation.read_tail_timeout (float): timeout for reading status frame after message is sent.read_timeout (float): timeout for reading single feedback block.read_buffer_size (int): feedback buffer size for reading.write_timeout (float): maximum time to send single chunk in seconds.write_buffer_size (int): chunk size for sending the message.connect_timeout (float): timeout for new connections.pool (str, type or object): networking layer implementation.Default implementation uses built-in python sockets and The purpose of thisĬlass is to hide the transport implementation that is being used for The front-end to the underlying connection pool. Session ( pool='', connect_timeout=10, write_buffer_size=2048, write_timeout=20, read_buffer_size=2048, read_timeout=20, read_tail_timeout=3, **pool_options ) ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |