kemalcr / kemal

Fast, Effective, Simple Web Framework

Home Page:https://kemalcr.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kemal not closing request properly?

u89012 opened this issue · comments

I started building an app using Kemal and started noticing the page just keeps loading even though there's nothing in the controller logic that would cause it to behave that way. I tried isolating the issue but I've no idea what causes it. I'm doing some fairly regular stuff, pull some records from a sqlite table and render the rows using render ecr. Frustrated, I tried the same code using built-in HTTP Server Handler and it just works as expected, no more indefinite page loading. It looks to me the request isn't being properly closed -- can someone with more knowledge help? I really love Kemal and would rather not use the Handler style controllers.

Another observation -- missing pages seem to take a long time to load as well (the ones with Kemal doesn't know this way)

Kemal: 0.26.1
Crystal 0.35.1 (2020-06-19)

LLVM: 10.0.0
Default target: x86_64-apple-macosx

Could you show the minimal code that reproduces the problem?

Closing this as there's no way to reproduce

I tried to run some old code and sure enough this problem still persists! :(

Postman here shows that the connection is still waiting for the response:
Screenshot 2022-06-02 at 11 59 13 AM

Postman shows response once the server has been terminated:
image

Server log shows that the request ended a long time ago!
image