Hello!
On Thu, Jul 7, 2016 at 6:38 AM, daniel wrote:
> It appears that the cosocket api is (intentionally?) missing the getpeername
> and getsockname api's.
Well, they are missing just because no one asks for them :)
> For example, I want to be able to create a socket with ngx.socket.tcp and
> connect and then record in the logs which local port it was bound to for
> debugging.
>
> Is this something that would make sense to ask for as a feature?
>
Yes. Patches welcome! Volunteers welcome!
Best regards,
-agentzh