1. 10 Dec, 2018 1 commit
    • Deomid Ryabkov's avatar
      Ensure that user sees all the data before connection is closed · e2dfac94
      Deomid Ryabkov authored
      If user throttles receive by setting recv_mbuf_limit,
      after the net interface reports connection as closed we must wait
      for data to trickle through before disposing of it.
      There can still b data in the buffers (e.g. SSL).
      
      CL: mg: Ensure that user sees all the data before connection is closed
      
      PUBLISHED_FROM=22be0fa368950a9fdb03cfb00febc7c0a1674b01
      e2dfac94
  2. 07 Dec, 2018 1 commit
  3. 05 Dec, 2018 2 commits
  4. 23 Nov, 2018 1 commit
  5. 20 Sep, 2018 1 commit
  6. 14 Sep, 2018 1 commit
    • Sergey Lyubka's avatar
      Docs nits · 291fc024
      Sergey Lyubka authored
      CL: Docs nits
      
      PUBLISHED_FROM=1a2fc8080d94673acf300c6f07aba3a1e6272295
      291fc024
  7. 06 Sep, 2018 1 commit
    • Deomid Ryabkov's avatar
      Refactor mg polling · 421e099f
      Deomid Ryabkov authored
       * Change return type of mg_mgr_poll to return number of events
       * Add mg_mgr_min_timer
       * Refactor main poll loop to remove LwIP-specific stuff
      
      CL: Refactor mg polling
      
      PUBLISHED_FROM=dc94618b32fa3c84a2f053bd04d134297780ec82
      421e099f
  8. 10 Apr, 2018 1 commit
    • Deomid Ryabkov's avatar
      Add mg_url_encode_opt() · e89be2e9
      Deomid Ryabkov authored
      CL: Add `mg_url_encode_opt()` - a parametrized version of `mg_url_encode()`
      
      PUBLISHED_FROM=17fa57a7a5325b51b6e3aef3855eac4e82c35782
      e89be2e9
  9. 07 Feb, 2018 1 commit
    • Dmitry Frank's avatar
      Implement mg_http_parse_header2() · b9b20c64
      Dmitry Frank authored
      Which is a replacement of (deprecated) `mg_http_parse_header`, but,
      similarly to `asprintf`, allocates a new buffer if the client-provided
      one is not large enough.
      
      Also use it throughout mongoose code, and thus some header-related
      limitations are removed; in particular,
      https://github.com/cesanta/mongoose/issues/813 is fixed.
      
      CL: Mongoose Web Server: Deprecate `mg_http_parse_header()` and implement `mg_http_parse_header2()` instead, which allocates a new buffer if the client-provided one is not large enough (similarly to `asprintf`).
      CL: Mongoose Web Server: Fix limitations of header value lengths, e.g. when parsing authentication headers such as nonce, etc.
      
      PUBLISHED_FROM=c75b1bbbbdb294ea85075ce69b1368f115fdd1ef
      b9b20c64
  10. 02 Feb, 2018 3 commits
  11. 01 Feb, 2018 2 commits
    • Dmitry Frank's avatar
      Fix nonce in digest authentication · 47abc641
      Dmitry Frank authored
      CL: Mongoose Web Server: Digest authentication: Fix nonce validity check (expired nonce or nonce from the future did not cause the the check to fail)
      CL: Mongoose Web Server: Digest authentication: Fix nonce request value; it worked before because nonce validity check was broken as well
      CL: Mongoose Web Server: Digest authentication: Add `nonce` argument to `mg_http_create_digest_auth_header()`: clients should use the value received from the server's authentication request.
      
      Resolves https://github.com/cesanta/mongoose/issues/809
      
      PUBLISHED_FROM=5e59f90ed6b2a4311ed6763159da81c2aaf6af4c
      47abc641
    • Dmitry Frank's avatar
      Improve websocket implementation · 7519b2ef
      Dmitry Frank authored
      CL: Mongoose Web Server: Websocket: Respond to Ping with Pong
      CL: Mongoose Web Server: Websocket: Properly close a connection with Close frame (in response to a client's close and when protocol failure is detected)
      CL: Mongoose Web Server: Websocket: Fix support of fragmented messages
      CL: Mongoose Web Server: Websocket: Add support for control frames interjected in the middle of a fragmented message
      
      PUBLISHED_FROM=e2b3794aaacc64633540c493194cccc62afa2077
      7519b2ef
  12. 28 Nov, 2017 2 commits
  13. 16 Oct, 2017 1 commit
  14. 22 Aug, 2017 1 commit
  15. 21 Jul, 2017 1 commit
    • Deomid Ryabkov's avatar
      Make mg_url_encode public · 0fba87c7
      Deomid Ryabkov authored
      Change the API to heap-allocate the string and get rid of a bunch of fat stack buffers.
      
      PUBLISHED_FROM=c793dc64a9a044a9769d92ea16859f5d704a2181
      0fba87c7
  16. 17 Jul, 2017 2 commits
  17. 02 Jul, 2017 1 commit
  18. 01 Jul, 2017 1 commit
  19. 28 Jun, 2017 1 commit
  20. 26 Jun, 2017 1 commit
  21. 04 Jun, 2017 1 commit
  22. 06 May, 2017 1 commit
    • Sergey Lyubka's avatar
      Move struct http_message::body · cfe77a3d
      Sergey Lyubka authored
      Rationale: this is the optimisation to make JS FFI-ed API
      work nicer. We don't have strucuture introspection now,
      and do not generate offsets automatially. Thus, using a
      stable well-known location of the parsed message body is
      better, in case of number of HTTP headers macro changes.
      
      PUBLISHED_FROM=55bf25ac77060a9c81dfecd6601f037562530801
      cfe77a3d
  23. 27 Apr, 2017 1 commit
  24. 24 Apr, 2017 1 commit
  25. 15 Apr, 2017 1 commit
  26. 24 Mar, 2017 1 commit
  27. 21 Mar, 2017 2 commits
  28. 20 Mar, 2017 1 commit
  29. 15 Mar, 2017 2 commits
  30. 11 Mar, 2017 1 commit
  31. 01 Mar, 2017 2 commits