GithubHelp home page GithubHelp logo

httpsrv's People

Contributors

mikeday avatar wangp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

httpsrv's Issues

Example hangs on request when using GRADE=asm_fast.gc

System configuration:

  • uname -r: 4.4.0-17763-Microsoft (Ubuntu 18.04 LTS)
  • mmc --version: Mercury Compiler, version rotd-2018-12-10, on x86_64-pc-linux-gnu
  • Host OS: Microsoft Windows [Version 10.0.17763.194]

Made the following request http://localhost:8000/test and this is the console output:

httpsrv [srv] add periodic: now=648417, milliseconds=5000
httpsrv [srv] add periodic: now=648418, milliseconds=10000
Started server on 0.0.0.0 port 8000
httpsrv [1:0] new client
httpsrv [2:0] new client
httpsrv [1:1] header: 'Host: localhost:8000'
httpsrv [1:1] header: 'Connection: keep-alive'
httpsrv [1:1] header: 'Cache-Control: max-age=0'
httpsrv [1:1] header: 'Upgrade-Insecure-Requests: 1'
httpsrv [1:1] header: 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36'
httpsrv [1:1] header: 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
httpsrv [1:1] header: 'Accept-Encoding: gzip, deflate, br'
httpsrv [1:1] header: 'Accept-Language: en-US,en;q=0.9,de;q=0.8'
httpsrv [1:1] header: 'Cookie: my-cookie=my-cookie-value'
httpsrv [1:1] on_headers_complete: method='GET', request-uri='/test'
httpsrv [3:0] new client
httpsrv [srv] periodic timer
periodic handler A - begin
periodic handler A - end
httpsrv [2:0] on_read_timeout: now=658239, state=IDLE
httpsrv [2:0] close by ../src/httpsrv1.c:742: state=IDLE
httpsrv [1:1] on_read_timeout: now=658239, state=PREPARING_RESPONSE
httpsrv [srv] periodic timer
periodic handler B - begin
periodic handler B - end
httpsrv [3:0] on_read_timeout: now=658524, state=IDLE
httpsrv [3:0] close by ../src/httpsrv1.c:742: state=IDLE
httpsrv [srv] periodic timer

Basically not a single byte is transferred tot he client (no matter if browser or curl).
Works fine the the hlc grade.

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.