1. 17 Feb, 2019 1 commit
  2. 16 Feb, 2019 2 commits
    • Philip Gladstone's avatar
      Initial version of code to support multiple hardware timers (#2497) · d7583040
      Philip Gladstone authored
      * Initial version of code to support multiple hardware timers
      * MAde the time sinca last tick work again
      * Add some documentation to the code
      d7583040
    • Nathaniel Wesley Filardo's avatar
      A generic fifo and fifosock wrapper, under telnet and http server (#2650) · dcc1ea2a
      Nathaniel Wesley Filardo authored
      * lua_modules/fifo: a generic queue & socket wrapper
      
      One occasionally wants a generic fifo, so here's a plausible
      implementation that's reasonably flexible in its usage.
      
      One possible consumer of this is a variant of TerryE's two-level fifo
      trick currently in the telnetd example.  Factor that out to fifosock for
      more general use.
      
      * lua_examples/telnet: use factored out fifosock
      
      * lua_modules/http: improve implementation
      
      Switch to fifosock for in-order sending and waiting for everything to be
      sent before closing.
      
      Fix header callback by moving the invocation of the handler higher
      
      * fifosock: optimistically cork and delay tx
      
      If we just pushed a little bit of data into a fifosock that had idled,
      wait a tick (1 ms) before transmitting.  Hopefully, this means that
      we let the rest of the system push more data in before we send the first
      packet.  But in a high-throughput situation, where we are streaming data
      without idling the fifo, there won't be any additional delay and we'll
      coalesce during operation as usual.
      
      The fifosocktest mocks up enough of tmr for this to run, but assumes
      an arbitrarily slow processor. ;)
      dcc1ea2a
  3. 14 Feb, 2019 1 commit
  4. 13 Feb, 2019 1 commit
  5. 12 Feb, 2019 1 commit
    • ziggurat29's avatar
      Fix occasional luac.cross crash (#2661) · 0c7758a5
      ziggurat29 authored
      A block of memory is accessed after having been freed. This was obscured by the fact that 'oBuf' is a pointer into the middle of the block 'dynamicTables', so when dynamicTables is freed, oBuf is pointing to freed memory. Occasionally, luac.cross would crash because of this.
      0c7758a5
  6. 11 Feb, 2019 2 commits
  7. 05 Feb, 2019 2 commits
  8. 02 Feb, 2019 1 commit
  9. 01 Feb, 2019 1 commit
  10. 24 Jan, 2019 1 commit
  11. 22 Jan, 2019 1 commit
  12. 20 Jan, 2019 2 commits
  13. 16 Jan, 2019 1 commit
    • galjonsfigur's avatar
      Updated FatFS from 0.12a to 0.13c (#2608) · 5d2bb87c
      galjonsfigur authored
      Files changed only by the author of FatFS (only updated to new version):
      
      - 00history.txt
      - 00readme.txt
      - ff.c
      - ff.h
      - ffunicode.c
      - diskio.h
      - integer.h
      - files in `option` folder except `syscall.c`
      
      Changes:
      - removed option folder (now everything is in ffunicode.c)
      - modified Makefile to support new version of FatFS
      - removed syscall.c and modified ffsystem.c from FatFS author instead
      - modified files: diskio.c, ffconf.h to mimic changes from new version
      - modified files: fatfs_config.h, myfatfs.c
      because of changes of configuration keywords in 0.13 version
      - removed empty lines from beginning of files:
      fatfs_prefix_lib.h, myfatfs.c, sdcard.c
      - changed version number in documentation
      5d2bb87c
  14. 15 Jan, 2019 2 commits
    • Nathaniel Wesley Filardo's avatar
      Update TLS protocol support (#2587) · 6e95d74f
      Nathaniel Wesley Filardo authored
      * Update TLS protocol support
      
      TLS1.0 is past PCI's EOL; BEAST is no more
      Enable elliptic curve key exchanges
      	Do not enable the smallest ECs for security
      	Do not enable the largest ECs for computational time
      	Do not enable 25519 (sad) because it doesn't go across the wire
      Drop non-PFS key exchanges
      Drop ARC4, Blowfish, DES, genprime, XTEA code
      Drop renegotiation support completely
      	It takes so much heap that it's not likely to work out well
      
      Tidy handling of SSL_BUFFER_SIZE
      
      Update docs
      Drop mention of startcom, since they are no more, for letsencrypt
      
      * Update mbedtls to 2.7.7
      
      Preserve our vsnprintf and platform hacks
      
      * Introduce TLS maximum fragment size knob
      
      Reduce buffer size to 4Ki by default and advertize that.  That's the
      largest we can advertize with the TLS MFL extension, so there's no
      point in making them larger.  The truly adventurous can re-raise
      SSL_BUFFER_SIZE and undefine the SSL_MAX_FRAGMENT_LENGTH_CODE and get
      back to the earlier behavior.
      
      * Default to mbedTLS debug with DEVELOP_VERSION
      6e95d74f
    • Javier Peletier's avatar
  15. 13 Jan, 2019 1 commit
    • Marcel Stör's avatar
      Re-organize documentation · b126c6b2
      Marcel Stör authored
      Drop support for localized content, #2213
      
      Restructure some content to match more closely what we have in master, #2542
      b126c6b2
  16. 28 Dec, 2018 1 commit
  17. 23 Dec, 2018 1 commit
  18. 19 Dec, 2018 1 commit
  19. 16 Dec, 2018 2 commits
  20. 12 Dec, 2018 1 commit
  21. 09 Dec, 2018 1 commit
  22. 05 Dec, 2018 1 commit
  23. 04 Dec, 2018 1 commit
  24. 03 Dec, 2018 2 commits
  25. 30 Nov, 2018 1 commit
    • Johan Ström's avatar
      Handle large/chunked/fragmented MQTT messages properly (#2571) · 2d958750
      Johan Ström authored
      * MQTT: handle large/chunked/fragmented messages properly
      
      If a message spans multiple TCP packets it must be buffered before
      delivered to LUA. Prior code did not do this at all, so this "patch"
      really adds proper handling of fragmented MQTT packets.
      This could also occur if multiple small messages was sent in a
      single TCP packet, and the last message did not completely fit in that
      packet.
      
      Introduces a new option to the mqtt.Client constructor:
      max_publish_length which defaults to 1024
      
      Introduces a new 'overflow' callback.
      
      Fixes issue #2308 and proper fix for PR #2544.
      
      * mqtt.md: clarified heap allocation
      
      * mqtt: ensure ack is sent for overflowed publish
      
      If QoS is used we should still acknowledge that we received it, or server might retransmit it later.
      2d958750
  26. 28 Nov, 2018 1 commit
  27. 26 Nov, 2018 1 commit
  28. 23 Nov, 2018 1 commit
  29. 16 Nov, 2018 1 commit
    • Carsten Elton Sørensen's avatar
      Calling vol:umount() would fail (#2558) · bb9a5977
      Carsten Elton Sørensen authored
      The volume returned by file.mount() could not be unmounted, because vol:umount() would fail with a cryptic error about the uncallable nature of the volume userdata object. This was due to the wrong metatable name being used for setting up the volume structure. The correct name, as registered elsewhere in file.c, is now used, and vol:umount() is callable.
      bb9a5977
  30. 13 Nov, 2018 2 commits
  31. 08 Nov, 2018 1 commit
  32. 03 Nov, 2018 1 commit