-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Llamafiler HTTP server stability/reliability fixes #767
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,13 +56,6 @@ Worker::begin() | |
| tokens = tokenbucket_acquire(client_.client_ip_); | ||
| server_->lock(); | ||
| dll_remove(&server_->idle_workers, &elem_); | ||
| if (dll_is_empty(server_->idle_workers)) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you considered increasing the maximum number of threads? One of the design goals with the server is to have it be able to manage its resources. I'd ideally like to see us doing it in a better way than simply giving up on this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe a good compromise here would be this: we can add a flag to disable this. That will get you unblocked fastest. |
||
| Dll* slowbro; | ||
| if ((slowbro = dll_last(server_->active_workers))) { | ||
| SLOG("all threads active! dropping oldest client"); | ||
| WORKER(slowbro)->kill(); | ||
| } | ||
| } | ||
| working_ = true; | ||
| if (tokens > FLAG_token_burst) { | ||
| dll_make_last(&server_->active_workers, &elem_); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The right thing to do here would be to call poll() I think to wait until it's writable.