Skip to content

Instantly share code, notes, and snippets.

server s1 {
stream 1 {
rxreq
txresp -status 100 -hdr 1 1 -nostrend
txresp -status 200 -hdr 2 2
} -run
} -start
client c1 -connect ${s1_sock} {
stream 1 {
@flano-yuki
flano-yuki / v2-v3.diff
Created August 20, 2015 02:41
$ diff -u -r ./nginx-1.9.3/src/http/v2/ ./nginx-1.9.4/src/htt p/v2/
diff -u -r ./nginx-1.9.3/src/http/v2/ngx_http_v2.c ./nginx-1.9.4/src/http/v2/ngx_http_v2.c
--- ./nginx-1.9.3/src/http/v2/ngx_http_v2.c 2015-08-16 14:32:49.654689058 +0900
+++ ./nginx-1.9.4/src/http/v2/ngx_http_v2.c 2015-08-20 11:38:03.424522814 +0900
@@ -169,9 +169,10 @@
static ngx_int_t ngx_http_v2_parse_method(ngx_http_request_t *r);
static ngx_int_t ngx_http_v2_parse_scheme(ngx_http_request_t *r);
static ngx_int_t ngx_http_v2_parse_authority(ngx_http_request_t *r);
-static void ngx_http_v2_run_request(ngx_http_request_t *r);
static ngx_int_t ngx_http_v2_construct_request_line(ngx_http_request_t *r);
-static ngx_int_t ngx_http_v2_concatenate_cookie_header(ngx_http_request_t *r);
@flano-yuki
flano-yuki / gist:6784f26510d1131cb155
Last active August 29, 2015 14:27
https://asnokaze.com chromeだとERR_SPDY_INADEQUATE_TRANSPORT_SECURITY
worker_processes 1;
events {
worker_connections 1024;
}
http {
#include mime.types;
default_type application/octet-stream;
@flano-yuki
flano-yuki / v1-v2.diff
Created August 16, 2015 05:37
nginx http/2 patch diff v2 from v2
diff -ur ./patched/v1/ngx_http_v2.c ./patched/v2/ngx_http_v2.c
--- ./patched/v1/ngx_http_v2.c 2015-08-16 14:30:09.292710298 +0900
+++ ./patched/v2/ngx_http_v2.c 2015-08-16 14:32:58.870572942 +0900
@@ -80,6 +80,8 @@
static void ngx_http_v2_write_handler(ngx_event_t *wev);
static void ngx_http_v2_handle_connection(ngx_http_v2_connection_t *h2c);
+static u_char *ngx_http_v2_state_proxy_protocol(ngx_http_v2_connection_t *h2c,
+ u_char *pos, u_char *end);
static u_char *ngx_http_v2_state_preface(ngx_http_v2_connection_t *h2c,
@flano-yuki
flano-yuki / similarly.md
Created November 2, 2014 12:41
similarly rfc
#
# Cookbook Name:: mptcp
# Recipe:: default
#
include_recipe 'apt'
apt_repository "multipath-tcp" do
uri "http://multipath-tcp.org/repos/apt/debian"
distribution "saucy"