Application not accessible from multiple clients simultaneously #2273
Unanswered
vlbeaudoin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Echo uses standard library HTTP server so every request (connection) has their own coroutine - so there should not be any locks unless something block in your implemented part. Also you could use pprof to profile lock contention https://www.instana.com/blog/detecting-lock-contention-in-go/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR Accessing echo application from multiple clients at the same time results in the first one working, and all the other ones timing out. I use sqlite3 / echo / haproxy and a tls certificate on haproxy from letsencrypt.
Hello,
I have a web application deployed on docker using the code hosted at agecem/bottin, and i currently have an issue with using multiple connections.
Essentially, I use echo to host a simple API and webapp using a server command, which opens a sqlite3 database using my data package and starts the webserver using my bottin package (see
RunServer()
function at line 86).My application works well enough for now, except when I try to access the application from multiple browsers at the same time. The first one works fine, but trying to access the application from additional browsers simultaneously results in all the other ones timing out.
I read that sqlite allows multiple connections, and echo logs report no error connecting. As a side note, I use HAProxy as a loadbalancer, maybe the issue comes from there?
I was wondering if anyone has had similar problems accessing a simple echo application from multiple client computers simultaneously?
Any help is appreciated, and thank you all in advance!
Beta Was this translation helpful? Give feedback.
All reactions