Coder Social home page Coder Social logo

gzip_streamer's Introduction

gzip_streamer

Test application which show problem in nginx gzip filter module

To compile & run use ./run.sh:

usage: gzip_streamer.jar [nginx] [config]
nginx executable  = /usr/sbin/nginx
nginx config      = nginx.conf
rss poll interval = 3000 ms


nginx started, pid: 4645, workers: [4647] (output redirected to 'nginx.out.log', pidfile: 'nginx.pid')
now you should start client (e.g `curl -H 'Accept-Encoding: gzip' -v http://localhost:8080/stream 1>/dev/null`)
total rss:    2.55 kB   +2.48 kB
total rss:    5.03 kB    +528  b
total rss:    5.56 kB    +792  b
total rss:    6.35 kB    +528  b
total rss:    6.88 kB    +792  b
total rss:    7.67 kB    +528  b
total rss:    8.20 kB    +792  b
total rss:    8.99 kB    +528  b
<...>

In other terminal session connect client:

$ curl -H 'Accept-Encoding: gzip' -v http://localhost:8080/stream 1>/dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying ::1...
* connect to ::1 port 8080 failed: Connection refused
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /stream HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.47.0
> Accept: */*
> Accept-Encoding: gzip
>
< HTTP/1.1 200 OK
< Server: nginx/1.10.0 (Ubuntu)
< Date: Mon, 08 Aug 2016 23:46:29 GMT
< Content-Type: application/octet-stream
< Transfer-Encoding: chunked
< Connection: keep-alive
< Content-Encoding: gzip
<...>

gzip_streamer's People

Contributors

burkov avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.