1. 18 Sep, 2024 1 commit
  2. 12 Sep, 2024 3 commits
  3. 05 Sep, 2024 2 commits
  4. 04 Sep, 2024 1 commit
  5. 02 Sep, 2024 1 commit
    • Alfredo Di Napoli's avatar
      ws: remove calls to recvMalloc · 15b732f5
      Alfredo Di Napoli authored
      Remove the calls to `recvMalloc` in favour of using the (patched) `recv`
      from the original nanomsg library, which shouldn't segfault anymore. The
      reason for using `recv` are a few, but mostly the fact that `recv` can
      allocated arbitrary-long payloads data (up to the 1MB limit) without an
      hardcoded limit like `recvMalloc` was imposing. Furthermore, `recv` does
      resource cleanup for us via `c_nn_freemsg`, whereas `recvMalloc` is not
      thread/exception safe. Consider the implementation:
      
      ```
      recvMalloc :: Receiver a => Socket a -> Int -> IO ByteString
      recvMalloc (Socket t sid) numBytes = do
        ptr <- mallocBytes numBytes
        -- receive by blocking the thread
        len <- c_nn_recv sid ptr (#const NN_MSG) 0 -- (#const NN_DONTWAIT)
        str <- C.packCStringLen (castPtr ptr, fromIntegral len)
        free ptr
        return str
      ```
      
      If any exception (synchronous or asynchronous) strikes _before_ the call
      to `free`, we would be leaking C memory.
      15b732f5
  6. 29 Aug, 2024 1 commit
  7. 28 Aug, 2024 1 commit
  8. 22 Aug, 2024 1 commit
  9. 19 Aug, 2024 1 commit
  10. 31 Jul, 2024 1 commit
  11. 29 Jul, 2024 1 commit
  12. 19 Jul, 2024 1 commit
  13. 12 Jul, 2024 1 commit
  14. 09 Jul, 2024 1 commit
  15. 04 Jul, 2024 1 commit
    • Alfredo Di Napoli's avatar
      Move GargConfig into gargantext · 9632276f
      Alfredo Di Napoli authored
      This commit moves `GargConfig` and the other config-related
      data structures back into gargantext, so that they can be edited
      and expanded without needing to worry about the prelude project.
      9632276f
  16. 26 Jun, 2024 4 commits
  17. 18 Jun, 2024 1 commit
  18. 17 Jun, 2024 2 commits
  19. 03 Jun, 2024 1 commit
  20. 22 May, 2024 1 commit
  21. 16 Apr, 2024 2 commits
  22. 15 Apr, 2024 2 commits
  23. 09 Apr, 2024 1 commit
  24. 08 Apr, 2024 2 commits
  25. 02 Apr, 2024 1 commit
  26. 01 Apr, 2024 1 commit
  27. 18 Mar, 2024 1 commit
  28. 11 Mar, 2024 1 commit
  29. 14 Feb, 2024 2 commits