1. 18 Dec, 2024 2 commits
  2. 09 Dec, 2024 1 commit
  3. 29 Nov, 2024 1 commit
  4. 06 Nov, 2024 1 commit
  5. 30 Oct, 2024 2 commits
  6. 29 Oct, 2024 1 commit
  7. 23 Oct, 2024 2 commits
  8. 10 Oct, 2024 1 commit
  9. 04 Oct, 2024 1 commit
  10. 18 Sep, 2024 1 commit
  11. 12 Sep, 2024 3 commits
  12. 05 Sep, 2024 2 commits
  13. 04 Sep, 2024 1 commit
  14. 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
  15. 29 Aug, 2024 1 commit
  16. 28 Aug, 2024 1 commit
  17. 22 Aug, 2024 1 commit
  18. 21 Aug, 2024 1 commit
  19. 19 Aug, 2024 1 commit
  20. 31 Jul, 2024 1 commit
  21. 29 Jul, 2024 1 commit
  22. 19 Jul, 2024 1 commit
  23. 12 Jul, 2024 1 commit
  24. 09 Jul, 2024 1 commit
  25. 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
  26. 26 Jun, 2024 4 commits
  27. 18 Jun, 2024 1 commit
  28. 17 Jun, 2024 2 commits
  29. 03 Jun, 2024 1 commit
  30. 22 May, 2024 1 commit