現在策定が進んでいる HTTP/2.0 では独自のヘッダー圧縮方法を使用している. 最新版は, http://http2.github.io/http2-spec/compression.html で公開されている. この文章を書いている時点での最新版は, http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72187 81749 72303 81778 | |
5000 | |
5,6,12=E4D9HIF8=GN576LOABMTPKQSR0J | |
6,5,238=I67E9MBC1AF05HJKRLNGPDQSTO | |
4,6,94827601A3BCD5JGMEFNHLKI | |
6,5,82935=174ABCD=RHTNJKFLI0PQSOGM | |
5,5,13O7D69E0ABC524LGJIFMN8HK | |
6,5,2395OI1AHB4C07KT6SJR8F=M=QEDGL | |
3,3,168452=30 | |
5,5,1245A9I7JN03HDO6GCKF8BLEM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <aria2/aria2.h> | |
int main() | |
{ | |
aria2::libraryInit(); | |
// session is actually singleton: 1 session per process | |
aria2::Session* session; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/spdylay_outbound_item.h b/lib/spdylay_outbound_item.h | |
index 12db6a6..21ebef9 100644 | |
--- a/lib/spdylay_outbound_item.h | |
+++ b/lib/spdylay_outbound_item.h | |
@@ -50,6 +50,7 @@ typedef struct { | |
spdylay_frame_category frame_cat; | |
void *frame; | |
void *aux_data; | |
+ int inipri; | |
int pri; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1d9ddfc0c0bf041461a321313d1a6af7286fc23e Mon Sep 17 00:00:00 2001 | |
From: Tatsuhiro Tsujikawa <[email protected]> | |
Date: Sat, 5 Apr 2014 21:34:45 +0900 | |
Subject: [PATCH] Update nghttp2 to latest, supporting h2-11 | |
--- | |
mrbgem.rake | 2 +- | |
src/mrb_http2.c | 1 + | |
src/mrb_http2.h | 6 ++++-- | |
src/mrb_http2_client.c | 13 ++++++------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From db7d7ebfe6281835f33b74f1ece22acdc3b176bf Mon Sep 17 00:00:00 2001 | |
From: Tatsuhiro Tsujikawa <[email protected]> | |
Date: Tue, 29 Apr 2014 16:28:41 +0900 | |
Subject: [PATCH] Attempt to decode HTTP/2 header block using nghttp2 HPACK | |
decoder | |
In this patch, We use nghttp2 HPACK decoder to decompress HTTP/2 header | |
block. To make HPACK decompressor work, we need to track down HTTP/2 | |
connection from the beginning. If we see the HTTP/2 magic (connection | |
preface), we initialize HPACK decompressor objects. We actually use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -urN libev-4.19.orig/config.sub libev-4.19/config.sub | |
--- libev-4.19.orig/config.sub 2014-05-23 03:53:16.000000000 +0900 | |
+++ libev-4.19/config.sub 2015-01-11 16:46:06.915460125 +0900 | |
@@ -1,10 +1,10 @@ | |
#! /bin/sh | |
# Configuration validation subroutine script. | |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | |
-# Free Software Foundation, Inc. | |
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen: 3001 | |
http2-max-concurrent-requests-per-connection: 1024 | |
max-connections: 15000 | |
num-threads: 1 | |
hosts: | |
localhost: | |
paths: | |
/: | |
file.dir: /path/to/htdocs |
command-line:
$ h2load http://localhost:50051/helloworld.Greeter/SayHello \ -d grpc-upload \ -H 'te: trailers' -H 'content-type: application/grpc' -n1000000 -c100 -m100
Create grpc-upload file using following python script:
OlderNewer