Welcome! Log In Create A New Profile

Advanced

Re: Adding a fd that is not obtained through accept to the list the active connections

Maxim Dounin
August 27, 2021 11:42AM
Hello!

On Fri, Aug 27, 2021 at 01:59:03PM +0200, Ottavio Campana wrote:

> Dear Phillip,
>
> I know Tailscale very well, I use it and like it a lot. But my final goal
> is finding a way to implement the ONVIF Uplink service,
> https://www.onvif.org/specs/srv/uplink/ONVIF-Uplink-Spec.pdf , where I can
> have several devices on the LAN that need to connect to a remote server,
> which will then send commands.
>
> Therefore I need a way to start a connection from nginx (or an external
> program and then passing the fd through a unix socket domain) and make it
> act as if the fd were obtained from an accept.
>
> Nginx works with events and I find it very difficult to find a mechanism to
> pass this connection to it.
>
> Do you have other ideas?

The most simple solution I can think of is to open two
connections: to your command endpoint and to nginx, and proxy
everything once the connections are established.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 192 August 26, 2021 09:14AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Phillip Odam 27 August 26, 2021 04:00PM

Re: Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 34 August 27, 2021 05:48AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Phillip Odam 34 August 27, 2021 07:12AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 28 August 27, 2021 08:00AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Maxim Dounin 37 August 27, 2021 11:42AM

Adding a fd that is not obtained through accept to the list the active connections

Phillip Odam 34 August 30, 2021 07:26AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 47 August 31, 2021 03:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready