1. 21 Dec, 2016 1 commit
    • Deomid Ryabkov's avatar
      Minor fixes to socket support when used with LWIP · 54ebcc5b
      Deomid Ryabkov authored
       - LWIP UDP sockets are always writable and they are not reported as
         such by select() (bug? featuyre?). TCP sockets are ok.
       - Always deliver MG_EV_POLL, whether we have other fd_events or not.
         Otherwise MG_EV_POLL would not be delivered at all to perma-writable
         UDP sockets (as they are on LWIP).
       - Ignore EAGAIN/EWOULDBLOCK errors while connecting, this happens
         during SSL handshake.
      
      PUBLISHED_FROM=3b1ee0d2b0c672512da5c9d6141aba1112983426
      54ebcc5b
  2. 20 Dec, 2016 2 commits
  3. 15 Dec, 2016 1 commit
  4. 14 Dec, 2016 2 commits
  5. 13 Dec, 2016 4 commits
  6. 12 Dec, 2016 1 commit
  7. 09 Dec, 2016 4 commits
  8. 08 Dec, 2016 3 commits
  9. 07 Dec, 2016 2 commits
  10. 02 Dec, 2016 2 commits
  11. 01 Dec, 2016 2 commits
  12. 29 Nov, 2016 3 commits
  13. 28 Nov, 2016 4 commits
  14. 27 Nov, 2016 1 commit
    • Deomid Ryabkov's avatar
      Minor memory shavings on ESP8266; ~2.5K less · e17fdcb0
      Deomid Ryabkov authored
       - Only allow one TCP segment in flight. Each segment is 1.5K and it
         adds up. This may increase latency, but memory is precious on ESP.
         At teh same time, optimize use of tcp_output: do not send a new segment
         on every write, only call tcp_output at the end of connection
         processing during poll.
      
       - Build LWIP with DNS disabled. We have our won resolver, and LWIP's
         allocates large static buffers (1K).
      
       - mbedTLS: Deallocate peer's certificate at the end of SSL handshake,
         reduces idle SSL connection footprint by ~1.5K.
      
       Some tweaks to the heap log viewer (which made all the above possible).
      
      PUBLISHED_FROM=6e84bba64eacb2d737561e09313918104921ea80
      e17fdcb0
  15. 25 Nov, 2016 3 commits
  16. 24 Nov, 2016 4 commits
  17. 23 Nov, 2016 1 commit
    • Dmitry Frank's avatar
      Fix mg_http_common_url_parse · 1ff61837
      Dmitry Frank authored
      The only client of `mg_http_common_url_parse` (namely,
      `mg_connect_http_base`) expects `port_i` to be the index in the address
      string at which the port was added.
      
      PUBLISHED_FROM=b095926b5485e4674e3c59ff8481171831fb61ae
      1ff61837