"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mod_http2/h2_stream.c" between
mod_http2-1.15.16.tar.gz and mod_http2-1.15.17.tar.gz

About: mod_h[ttp]2 is an Apache httpd module implementing the HTTP2 protocol. It uses nghttp2 as base engine and connects it with the Apache infrastructure. Hint: Module (previous name "mod_h2") now integrated into Apache httpd (since v2.4.17). Experimental release.

h2_stream.c  (mod_http2-1.15.16):h2_stream.c  (mod_http2-1.15.17)
skipping to change at line 641 skipping to change at line 641
void h2_stream_set_request(h2_stream *stream, const h2_request *r) void h2_stream_set_request(h2_stream *stream, const h2_request *r)
{ {
ap_assert(stream->request == NULL); ap_assert(stream->request == NULL);
ap_assert(stream->rtmp == NULL); ap_assert(stream->rtmp == NULL);
stream->rtmp = h2_request_clone(stream->pool, r); stream->rtmp = h2_request_clone(stream->pool, r);
} }
static void set_error_response(h2_stream *stream, int http_status) static void set_error_response(h2_stream *stream, int http_status)
{ {
if (!h2_stream_is_ready(stream)) { if (!h2_stream_is_ready(stream)) {
conn_rec *c = stream->session->c; stream->rtmp->http_status = http_status;
apr_bucket *b;
h2_headers *response;
response = h2_headers_die(http_status, stream->request, stream->pool);
prep_output(stream);
b = apr_bucket_eos_create(c->bucket_alloc);
APR_BRIGADE_INSERT_HEAD(stream->out_buffer, b);
b = h2_bucket_headers_create(c->bucket_alloc, response);
APR_BRIGADE_INSERT_HEAD(stream->out_buffer, b);
} }
} }
static apr_status_t add_trailer(h2_stream *stream, static apr_status_t add_trailer(h2_stream *stream,
const char *name, size_t nlen, const char *name, size_t nlen,
const char *value, size_t vlen, const char *value, size_t vlen,
size_t max_field_len, int *pwas_added) size_t max_field_len, int *pwas_added)
{ {
conn_rec *c = stream->session->c; conn_rec *c = stream->session->c;
char *hname, *hvalue; char *hname, *hvalue;
 End of changes. 1 change blocks. 
10 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)