Welcome! Log In Create A New Profile

Advanced

Re: Tracking the start and complete of a download?

Manlio Perillo
October 15, 2010 04:58PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 15/10/2010 17:21, Robert La Ferla ha scritto:
> How could I configure nginx so that when a download is started and when
> it completes, it makes a HTTP GET request to another web server?
>

This is not possible.
You need to write a custom Nginx module.

Writing the module is not hard, the complex thing is the HTTP GET, since
it should be done so that Nginx main process is not blocked during request.

However there are alternatives, as an example you can have Nginx write
to a FIFO in asynchonous mode, and have an external process read the
FIFO and do the work.

If FIFO is busy (external process is slow to read data), however, Nginx
will have to skip sending notification.


> [...]


Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky4v3sACgkQscQJ24LbaUS9ggCgmJacyMY8pqqRXlAgSay4SoP4
/PkAnirUh8+LuOW+kVG2EmxoEp2r1EOW
=gUxU
-----END PGP SIGNATURE-----

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Tracking the start and complete of a download?

Robert La Ferla October 15, 2010 11:26AM

Re: Tracking the start and complete of a download?

Manlio Perillo October 15, 2010 04:58PM

Re: Tracking the start and complete of a download?

Eugaia October 15, 2010 05:22PM

Re: Tracking the start and complete of a download?

Manlio Perillo October 16, 2010 05:08AM

Re: Tracking the start and complete of a download?

Eugaia October 16, 2010 11:30AM

Re: Tracking the start and complete of a download?

Robert La Ferla October 17, 2010 08:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready