Skip to content
Snippets Groups Projects
  1. Mar 25, 2020
    • Timo Teräs's avatar
      libfetch: fixups to packetization socket option setting · eae92bba
      Timo Teräs authored
      - split the code to a helper function
      - do not set sockets to corked state when putting back to
        cache so socket state is always deterministic
      - cork/uncork also when sending CONNECT to a proxy, this
        can reduce a little bit the latency how fast the packet
        gets sent out
      - also pair corking with uncorking in http_request to make
        it more obvious pairing
      eae92bba
    • Alex Wauck's avatar
      libfetch: minor HTTP handling improvement · 09dbe46a
      Alex Wauck authored and Timo Teräs's avatar Timo Teräs committed
      The recent TCP_CORK change missed this bit of code.  This change
      should improve performance a bit when making HTTP requests by calling
      http_cmd only once instead of three times.
      09dbe46a
  2. Mar 23, 2020
  3. Mar 21, 2020
    • Antoine Fontaine's avatar
      lower min-width to 25 columns · e8522411
      Antoine Fontaine authored and Timo Teräs's avatar Timo Teräs committed
      Some screen size are quite small. For example, the default phosh
      terminal is less than 50 character wide on Pinephone. This lowers the minimum
      loading bar size to 25 characters.
      
      For comparison, 25 character wide is just as wide as "apk add firefox
      linux-lts" without the quotes.
      
      Here's a bad picture to illustrate the result
      gitlab.alpine.org/uploads/48c20f746fbf685b62b6bd73585ecbf2/pinephone-phosh.png
      e8522411
    • TBK's avatar
      fix glibc build · a9916c2d
      TBK authored and Timo Teräs's avatar Timo Teräs committed
      fixes #10677
      
      src/apk_defines.h:152:15: error: unknown type name 'uint32_t'
       static inline uint32_t get_unaligned32(const void *ptr)
                     ^~~~~~~~
      a9916c2d
  4. Mar 16, 2020
  5. Feb 23, 2020
  6. Feb 21, 2020
  7. Feb 18, 2020
    • Timo Teräs's avatar
      libfetch: support TCP_CORK · 271047cc
      Timo Teräs authored
      Unfortunately libfetch operates on raw sockets and is sending
      each HTTP request line using separate syscall which causes the
      HTTP request to be sent as multiple packets over the wire in most
      configurations. This is not good for performance, but can also
      cause subtle breakage if there's DPI firewall that does not get
      the Host header.
      
      Incidentally, it seems that on BSDs libfetch already sets
      TCP_NOPUSH optimize the packetization. This commit adds same
      logic for using TCP_CORK if available. When using TCP_CORK
      there is no requirement to set TCP_NODELAY as uncorking will
      also cause immediate send. Keep TCP_NODELAY in the fallback
      codepaths.
      
      Long term, it might make sense to replace or rewrite libfetch
      to use application level buffering.
      271047cc
  8. Feb 17, 2020
  9. Feb 14, 2020
  10. Feb 04, 2020
  11. Jan 26, 2020
Loading