Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3838] cherokee/trunk/cherokee/handler_proxy.c: Now the reverse HTTP proxy can spawn new information sources as the

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Nov 18, 2009, 8:20 AM

Post #1 of 1 (125 views)
Permalink
[3838] cherokee/trunk/cherokee/handler_proxy.c: Now the reverse HTTP proxy can spawn new information sources as the

Revision: 3838
http://svn.cherokee-project.com/changeset/3838
Author: alo
Date: 2009-11-18 17:24:06 +0100 (Wed, 18 Nov 2009)

Log Message:
-----------
Now the reverse HTTP proxy can spawn new information sources as the
rest of the handlers do (FastCGI, SGI, uWSGI, etc). In this way, it
can launch new back-end HTTP servers for public web server to relay
on. It isn't the most common case, but it's fairly common scenario.

Modified Paths:
--------------
cherokee/trunk/cherokee/handler_proxy.c

Modified: cherokee/trunk/cherokee/handler_proxy.c
===================================================================
--- cherokee/trunk/cherokee/handler_proxy.c 2009-11-18 09:55:12 UTC (rev 3837)
+++ cherokee/trunk/cherokee/handler_proxy.c 2009-11-18 16:24:06 UTC (rev 3838)
@@ -28,6 +28,7 @@
#include "util.h"
#include "thread.h"
#include "server-protected.h"
+#include "source_interpreter.h"

#define ENTRIES "proxy"

@@ -746,6 +747,20 @@
hdl->pconn->keepalive_in = false;
return ret_error;
}
+
+ if (hdl->src_ref->type == source_interpreter) {
+ ret = cherokee_source_interpreter_spawn (SOURCE_INT(hdl->src_ref),
+ CONN_VSRV(conn)->logger);
+ switch (ret) {
+ case ret_ok:
+ break;
+ case ret_eagain:
+ return ret_eagain;
+ default:
+ return ret_error;
+ }
+ }
+
hdl->respined = true;
goto reconnect;
default:

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.