Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes this plugin fails to work after inactivity #7

Open
zessu opened this issue Dec 19, 2023 · 0 comments
Open

Sometimes this plugin fails to work after inactivity #7

zessu opened this issue Dec 19, 2023 · 0 comments

Comments

@zessu
Copy link

zessu commented Dec 19, 2023

Issue with timeouts after long periods of inactivity

Not sure if this is an Elysia issue, bun or a plugin issue, but sometimes this plugin just stops working
I am currently using bun 1.0.15 and if I don't hit any graphql endpoint for a while, say 20 minutes, I have to restart the server all over again

The issue is on the /graphql endpoint which I am hitting like this

const app = new Elysia() .use(cors()) .use( apollo({ schema, path: "/graphql", enablePlayground: true, context: async ({ request }) => { return { db: queryClient }; }, } as ElysiaApolloConfig) ) .listen(8080);

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

No branches or pull requests

1 participant