Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.1 #8

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Adjustments for current varnish-cache: Misc & includes
Much more can be done here to reduce the required varnish internal
headers, but for now this commit concludes the required changes for
varnish-cache master as of now (post 7.1)
nigoroll committed May 20, 2022

Verified

This commit was signed with the committer’s verified signature.
rhennigan Rick Hennigan
commit b441c2ed35a231aff11e6a32aec8babe2d621c60
4 changes: 4 additions & 0 deletions src/vmod_soap.c
Original file line number Diff line number Diff line change
@@ -25,7 +25,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"

#include "cache/cache.h"
#include "vmod_soap.h"
#include "vcc_soap_if.h"

#define POOL_KEY "VRN_IH_PK"

8 changes: 0 additions & 8 deletions src/vmod_soap.h
Original file line number Diff line number Diff line change
@@ -28,14 +28,6 @@
#ifndef __VMOD_SOAP__H__
#define __VMOD_SOAP__H__

/* need vcl.h before vrt.h for vmod_evet_f typedef */
#include "cache/cache.h"
#include "cache/cache_director.h"
#include "cache/cache_backend.h"
#include "vtim.h"
#include "vcc_soap_if.h"
#include <vrt_obj.h>

#include <apr_general.h>
#include <apr_tables.h>
#include <apr_pools.h>
5 changes: 5 additions & 0 deletions src/vmod_soap_gzip.c
Original file line number Diff line number Diff line change
@@ -25,7 +25,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"

#include "cache/cache.h"
#include "vmod_soap.h"
#include "vcc_soap_if.h"

#include "vmod_soap_http.h"
#include "vmod_soap_gzip.h"

10 changes: 8 additions & 2 deletions src/vmod_soap_request.c
Original file line number Diff line number Diff line change
@@ -25,7 +25,13 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"

// XXX for struct http_conn, should be replaced with buffered body
#include "cache/cache_varnishd.h"
#include "vmod_soap.h"
#include "vcc_soap_if.h"

#include "vmod_soap_xml.h"
#include "vmod_soap_gzip.h"

@@ -63,7 +69,7 @@ fill_pipeline(struct soap_req_http *req_http, struct http_conn *htc, body_part *
htc->pipeline_b = buf;
htc->pipeline_e = buf + original_pipeline_len;

i = read(htc->fd, htc->pipeline_e, bytes_left);
i = read(*htc->rfd, htc->pipeline_e, bytes_left);
if (i <= 0) {
if (htc->pipeline_b == htc->pipeline_e) {
htc->pipeline_b = NULL;
@@ -72,7 +78,7 @@ fill_pipeline(struct soap_req_http *req_http, struct http_conn *htc, body_part *
// XXX: VTCP_Assert(i); // but also: EAGAIN
VSLb(req_http->ctx->vsl, SLT_FetchError,
"%s", strerror(errno));
req_http->ctx->req->req_body_status = REQ_BODY_FAIL;
req_http->ctx->req->req_body_status = BS_ERROR;
return (i);
}
pipeline->data = htc->pipeline_b + bytes_read;
5 changes: 5 additions & 0 deletions src/vmod_soap_xml.c
Original file line number Diff line number Diff line change
@@ -25,7 +25,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"

#include "cache/cache.h"
#include "vmod_soap.h"
#include "vcc_soap_if.h"

#include "vmod_soap_xml.h"
#include "vmod_soap_http.h"
#include "vmod_soap_request.h"