Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Not GC-safe for threading #22

Open
bitnom opened this issue Nov 18, 2019 · 0 comments
Open

Not GC-safe for threading #22

bitnom opened this issue Nov 18, 2019 · 0 comments

Comments

@bitnom
Copy link

bitnom commented Nov 18, 2019

I managed to get the module working using the fork: https://github.com/travisstaloch/nim-httpauth but I noticed that Jester is only using 1 thread. I tried to compile with --threads:on but I got the error:

/home/user/.nimble/pkgs/jester-0.4.3/jester.nim(1277, 9) Hint: Asynchronous route: match. [User]
/home/user/Projects/project/bin/project.nim(19, 1) template/generic instantiation of `routes` from here
/home/user/.nimble/pkgs/jester-0.4.3/jester.nim(1283, 35) template/generic instantiation of `async` from here
/home/user/.nimble/lib/pure/asyncmacro.nim(272, 31) Error: 'matchIter' is not GC-safe as it accesses 'auth' which is a global using GC'ed memory

This is my first time using Jester. I have read that the best practice is to put it behind nginx or litespeed. Is it also a best practice to enable threads? Seems like it would be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant