Simon Marechal
November 30, 2021 10:54AM
Hello,

I am trying to interface an asynchronous library with nginx, as a
module. I already asked Maxim Dounin (thanks!) about this, he gave me a few
pointers, and asked me to look at the memcache module about how it was done.

I however wonder if that is a good example of what I am trying to
achieve, as in my use case it's more of a content filter module. That means
that when I return NGX_DONE from the NGX_HTTP_CONTENT_PHASE (is that the
right phase I picked? I need the headers and body), I will run this
asynchronous library. Once it has finished working, it should either return
a "block" response, and continue with normal processing (returning a static
file, proxy, etc.). While I have a notion of how I could return the "block"
answer, I am not sure how to resume the normal course of operations in the
other case.

I hope I am making sense ... Is there a good module that runs at this
phase and is asynchronous?

Best regards,
Simon
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Async Nginx question

Simon Marechal 364 November 30, 2021 10:54AM



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

Online Users

Guests: 253
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