Skip to content
Snippets Groups Projects
  1. Mar 01, 2025
  2. Feb 15, 2025
  3. Feb 08, 2025
  4. Oct 01, 2024
  5. Sep 01, 2024
  6. Jul 30, 2024
  7. May 11, 2024
  8. Apr 06, 2024
    • Joan Lledó's avatar
      New unreleased version 2.2.0+dfsg1-7 · ade867cb
      Joan Lledó authored
      ade867cb
    • Joan Lledó's avatar
      Refactor max_sockets patch · d32b710f
      Joan Lledó authored
      Store sockets in a dynamic array instead of a linked list.
      
      Before:
       - Allocate: O(n)
       - Lookup: O(n)
       - Free: O(n)
      
      After:
       - Alocate: O(n)
       - Lookup: O(1)
       - Free: O(1)
      
      * src/core/init.c:
        * Stop forcing `LWIP_SOCKET_SELECT = 0` when `LWIP_SOCKET_OPEN_COUNT = 1`
          * `select()` won't work with sockets which number is over `FD_SETSIZE`,
            but the man page already includes a warning about it. I don't think we
            should forbid `select()` completely because of this.
      * contrib/ports/unix/posixlib/lwipopts.h:
        * Stop setting `LWIP_SOCKET_SELECT` to `0`
      * src/api/sockets.c:
        * Implement dynamic array logic
          * Remove `translate_socket()`, not needed anymore.
          * Use `sockets_slots_count` as the socket list capacity instead
            of `NUM_SOCKETS`
          * `alloc_socket_slots_locked()`: new method to increase sockets capacity
          * `init_socket()`: New method implementing the common socket init logic
          * `alloc_socket()`: When `LWIP_SOCKET_OPEN_COUNT = 1`, it allocates new
            slots for more sockets.
      d32b710f
  9. Mar 17, 2024
  10. Mar 01, 2024
  11. Jan 20, 2024
  12. Jan 13, 2024
  13. Jan 03, 2024
  14. Dec 26, 2023
  15. Dec 09, 2023
  16. Nov 18, 2023
  17. Nov 12, 2023
  18. Nov 05, 2023
  19. Oct 21, 2023
  20. Oct 14, 2023
  21. Oct 13, 2023
Loading