Actually, Cygwin has libev and nghttp2 packages now. So, you can use h2load feature even if you don’t build nghttp2 by yourself. Nevertheless, if you build nghttp2 on Cygwin, you need to build the Jansson and the spdylay before building it because Cygwin doesn’t have their packages. But, according to the current trend, I think you don’t need the spdylay package. (2016.6.18)
—————————————————————————————————————————————————
Now, I have two zip files. One is H2LOAD_dll_package_x86.zip, another is H2LOAD_dll_package_x64.zip. If you download one of them, you can do the test by h2load on your Windows PC. Run cmd.exe and do like this.
> h2load -n100000 -c100 -m10 https://localhost
If you do this test, you should create your own local server. Because the test might be a cyber attack for the server if you set numbers too high as values of -n -c -m. Be careful.
I wrote like this before:‘I don’t know why, but it looks like telling Apache without HTTP/2 is faster. Gee!’. This time, I had interesting results. See HTTPS with HTTP/2 and HTTPS without HTTP/2. The test tells that the server supports HTTP/2 is good at dealing with concurrent streams than the server doesn’t support HTTP/2. This is one of HTTP/2 features.
I’ll write about my hard work to get these files (^_^;).
[Caution]: The steps blow give the files contained by H2LOAD_dll_package_x64.zip. If you want to have the files for x86 PC, you have to do all steps by setup-x86.exe on a Windows x86 PC.
> pushd x:Cygwin
>gpg --import pubring.asc
gpg: key 676041BA: public key "Cygwin <cygwin@cygwin.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
>gpg --verify setup-x86_64.exe.sig
gpg: assuming signed data in 'setup-x86_64.exe'
gpg: Signature made 10/19/15 04:38:02 東京 (標準時) using DSA key ID 676041BA
gpg: Good signature from "Cygwin <cygwin@cygwin.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 1169 DF9F 2273 4F74 3AA5 9232 A9A2 62FF 6760 41BA
$ pwd
☜ Checking Current position.$ mkdir Download
☜ For my download files.$ mkdir Source
☜ For my source files.$ pwd
$ cd Download
$ lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
$ install apt-cyg /usr/local/bin
$ apt-cyg -m ftp://ftp.jaist.ac.jp/pub/cygwin/ update
$ apt-cyg install autoconf automake make libtool gcc-core gcc-g++
$ apt-cyg install cygport
$ cd /usr/src
$ wget http://dist.schmorp.de/libev/libev-4.20.tar.gz
$ wget https://github.com/fd00/yacp/raw/master/libev/libev-4.20-1bl1.cygport
$ wget https://github.com/fd00/yacp/raw/master/libev/libev-4.20-1bl1.src.patch
$ cygport ./libev-4.20-1bl1.cygport all
$ wget https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/libev/files/libev-pc.patch
$ cygport ./libev-4.20-1bl1.cygport all
$ cd ~Download
$ wget https://sourceware.org/viewvc/cygwin-apps/genini/genini?revision=1.16&view=co
$ mv genini@revision=1.16 genini
$ install genini /usr/local/bin
$ cd /usr/src/libev-4.20-1bl1.x86_64/dist
$ cp -R libev /cygdrive/x/Apache24/htdocs/cygwin/x86_64/release
$ cd /cygdrive/x/Apache24/htdocs/cygwin
$ genini --recursive x86_64 | bzip2 -c > x86_64/setup.bz2
The Apache above is my test server.
I ran setup-x86_64.exe with ‘-X (= --no-verify)’ option. But, I couldn’t use my local repo. Is this related to ‘Error Installing Cygwin (setup-x86_64.exe & setup-x86) – No setup.ini.sig found.’? I used Achim Gratz’s local version, but nothing good was brought.
I’ve not solved this yet. So I installed the following files manually. Oops!
$ install /usr/src/libev-4.20-1bl1.x86_64/inst/usr/bin/cygev-4.dll /usr/bin
$ mkdir /usr/include/libev
$ install /usr/src/libev-4.20-1bl1.x86_64/inst/usr/include/libev/ev* /usr/include/libev
(ev* = ev.h ev++.h event.h)
$ install /usr/src/libev-4.20-1bl1.x86_64/inst/usr/lib/libev.dll.a /usr/lib
$ install /usr/src/libev-4.20-1bl1.x86_64/inst/usr/lib/pkgconfig/libev.pc /usr/lib/pkgconfig
$ install /usr/src/libev-4.20-1bl1.x86_64/inst/usr/share/man/man3/ev.3.gz /usr/share/man/man3
$ apt-cyg install cmake
$ cd /usr/src
$ wget http://www.digip.org/jansson/releases/jansson-2.7.tar.bz2
$ wget https://github.com/fd00/yacp/raw/master/jansson/jansson-2.7-1bl1.cygport
$ wget https://github.com/fd00/yacp/raw/master/jansson/jansson-2.7-1bl1.src.patch
$ cygport ./jansson-2.7-1bl1.cygport all
$ install /usr/src/jansson-2.7-1bl1.x86_64/inst/usr/bin/cygjansson-4.dll /usr/bin
$ install /usr/src/jansson-2.7-1bl1.x86_64/inst/usr/include/ja* /usr/include
$ install /usr/src/jansson-2.7-1bl1.x86_64/inst/usr/lib/libjansson.dll.a /usr/lib
$ install /usr/src/jansson-2.7-1bl1.x86_64/inst/usr/lib/pkgconfig/jansson.pc /usr/lib/pkgconfig
$ apt-cyg install libxml2-devel CUnit
$ cd /usr/src
$ wget https://github.com/tatsuhiro-t/spdylay/releases/download/v1.3.2/spdylay-1.3.2.tar.xz
$ wget https://github.com/fd00/yacp/raw/master/spdylay/spdylay-1.3.2-1bl1.cygport
$ wget https://github.com/fd00/yacp/raw/master/spdylay/spdylay-1.3.2-1bl1.src.patch
$ cygport ./spdylay-1.3.2-1bl1.cygport all
$ apt-cyg install pkg-config
$ cygport ./spdylay-1.3.2-1bl1.cygport all
again.$ install /usr/src/spdylay-1.3.2-1bl1.x86_64/inst/usr/bin/*.exe /usr/bin
$ install /usr/src/spdylay-1.3.2-1bl1.x86_64/inst/usr/bin/cygspdylay-7.dll /usr/bin
$ mkdir /usr/include/spdylay
$ install /usr/src/spdylay-1.3.2-1bl1.x86_64/inst/usr/include/spdylay/spd* /usr/include/spdylay
$ install /usr/src/spdylay-1.3.2-1bl1.x86_64/inst/usr/lib/libspdylay.dll.a /usr/lib
$ install /usr/src/spdylay-1.3.2-1bl1.x86_64/inst/usr/lib/pkgconfig/libspdylay.pc /usr/lib/pkgconfig
$ cd /usr/src
$ wget https://github.com/tatsuhiro-t/nghttp2/releases/download/v1.4.0/nghttp2-1.4.0.tar.xz
$ wget https://github.com/fd00/yacp/raw/master/nghttp2/nghttp2-1.4.0-1bl1.cygport
$ wget https://github.com/fd00/yacp/raw/master/nghttp2/nghttp2-1.4.0-1bl1.src.patch
$ cygport ./nghttp2-1.4.0-1bl1.cygport all
$ install /usr/src/nghttp2-1.4.0-1bl1.x86_64/inst/usr/bin/* /usr/bin
$ mkdir /usr/include/nghttp2
$ install /usr/src/nghttp2-1.4.0-1bl1.x86_64/inst/usr/include/nghttp2/*.h /usr/include/nghttp2
$ install /usr/src/nghttp2-1.4.0-1bl1.x86_64/inst/usr/lib/libnghttp2.dll.a /usr/lib
$ install /usr/src/nghttp2-1.4.0-1bl1.x86_64/inst/usr/lib/pkgconfig/* /usr/lib/pkgconfig
TO-DO: To access my own Cygwin repo by setup-x86_64.exe.
Edit(2016.Jan.4):
I re-built h2load.exe with libev-4.22.tar.gz and nghttp2-1.6.0.
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.