You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting fairly frequent 300ms+ pauses on requests, setting up the connection
In a real, heavier application these pauses are occurring more frequently. Tested on both Windows and WSL
using HTTP, JSON3, Sockets, Tables
const router = HTTP.Router()
functionmiddleware(handler)
returnfunction(req::HTTP.Request)
ret =handler(req)
if ret isa HTTP.Response
return ret
endreturn HTTP.Response(200, JSON3.write(ret))
endendfunctionindex(req::HTTP.Request)
home =read("index.html")
return HTTP.Response(200, home)
end
HTTP.register!(router, "GET", "/", index)
const data = Tables.rowtable((; a=rand(100), b=rand(100), c=rand(100)))
functionapi(req::HTTP.Request)
return data
end
HTTP.register!(router, "GET", "/api/test", api)
HTTP.serve(router |> middleware, Sockets.localhost, 8033)
The text was updated successfully, but these errors were encountered:
Not able to reproduce this reliably on a different windows machine - might have just been constrained memory on the other box making more GC pauses? Closing for now.
Set-up here, copied out julia code below
https://gist.github.com/chris-b1/87cdf64b3147587695ffe44439fa3ff1
I'm getting fairly frequent 300ms+ pauses on requests, setting up the connection


In a real, heavier application these pauses are occurring more frequently. Tested on both Windows and WSL
The text was updated successfully, but these errors were encountered: