Re: Module connecting outside

2017-03-30 Thread Antonio Nappa
Hello, I have a module connecting to the outside through SSL with the usage of ngx_event_connect_peer and the SSL primitives of nginx. My next question is, it is better to have a separate peer and its connection for each worker, or share the same connection among all the workers? My idea is to

Re: Module connecting outside

2017-03-09 Thread Maxim Dounin
Hello! On Wed, Mar 08, 2017 at 08:10:25PM +0100, Antonio Nappa wrote: > I am in the process of creating a module that connects to the outside to > exchange data with another service, I am taking as inspiration the > mail_module and the upstream module, basically my module is connecting > using

Module connecting outside

2017-03-08 Thread Antonio Nappa
Hello everyone, I am in the process of creating a module that connects to the outside to exchange data with another service, I am taking as inspiration the mail_module and the upstream module, basically my module is connecting using the ngx_event_connect_peer and handling the read and write