From 8b2630a82fbecfd57fa38aebb397a755936690e5 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Fri, 18 Sep 2015 15:15:18 +0000 Subject: add README to point to lighttpd-1.4.x as stable git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_proxy_core_backlog.h | 61 -------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/mod_proxy_core_backlog.h (limited to 'src/mod_proxy_core_backlog.h') diff --git a/src/mod_proxy_core_backlog.h b/src/mod_proxy_core_backlog.h deleted file mode 100644 index a59141f8..00000000 --- a/src/mod_proxy_core_backlog.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef _MOD_PROXY_CORE_BACKLOG_H_ -#define _MOD_PROXY_CORE_BACKLOG_H_ - -#include -#ifndef _WIN32 -#include -#else -#include -#endif - -typedef struct _proxy_request { - void *con; /* a pointer to the client-connection, (type: connection) */ - - time_t added_ts; /* when was the entry added (for timeout handling) */ - - struct _proxy_request *next; -} proxy_request; - -/** - * a we can't get a connection from the pool, queue the request in the - * request queue (FIFO) - * - * - the queue is infinite - * - entries are removed after a timeout (status 504) - */ -typedef struct { - proxy_request *first; /* pull() does q->first = q->first->next */ - proxy_request *last; /* push() does q->last = r */ - - size_t length; -} proxy_backlog; - -proxy_backlog *proxy_backlog_init(void); -void proxy_backlog_free(proxy_backlog *backlog); - -/** - * append a request to the end - * - * @return 0 in success, -1 if full - */ -int proxy_backlog_push(proxy_backlog *backlog, proxy_request *req); - -/** - * remove the first request from the backlog - * - * @return NULL if backlog is empty, the request otherwise - */ -proxy_request *proxy_backlog_shift(proxy_backlog *backlog); -/** - * remove the request with the connection 'con' from the backlog - * - * @return -1 if not found, 0 otherwise - */ -int proxy_backlog_remove_connection(proxy_backlog *backlog, void *con); - -proxy_request *proxy_request_init(void); -void proxy_request_free(proxy_request *req); - -#endif - - -- cgit v1.2.1