Commit 6ce863c
authored
server: prevent data race from HTTP threads (#18263)
* server: prevent data race from HTTP threads
* fix params
* fix default_generation_settings
* nits: make handle_completions_impl looks less strange
* stricter const
* fix GGML_ASSERT(idx < states.size())
* move index to be managed by server_response_reader
* http: make sure req & res lifecycle are tied together
* fix compile
* fix index handling buggy
* fix data race for lora endpoint
* nits: fix shadow variable
* nits: revert redundant changes
* nits: correct naming for json_webui_settings1 parent 3997c78 commit 6ce863cCopy full SHA for 6ce863c
File tree
Expand file treeCollapse file tree
11 files changed
+459
-366
lines changedOpen diff view settings
Filter options
- tools
- cli
- server
Expand file treeCollapse file tree
11 files changed
+459
-366
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
216 | 216 | |
217 | 217 | |
218 | 218 | |
219 | | - |
| 219 | + |
220 | 220 | |
221 | 221 | |
222 | 222 | |
|
Collapse file
tools/server/server-common.cpp
Copy file name to clipboardExpand all lines: tools/server/server-common.cpp+10-17Lines changed: 10 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
115 | 115 | |
116 | 116 | |
117 | 117 | |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
| 118 | + |
| 119 | + |
128 | 120 | |
129 | 121 | |
130 | 122 | |
131 | 123 | |
132 | 124 | |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
| 125 | + |
138 | 126 | |
139 | 127 | |
140 | 128 | |
| ||
1435 | 1423 | |
1436 | 1424 | |
1437 | 1425 | |
1438 | | - |
| 1426 | + |
1439 | 1427 | |
1440 | 1428 | |
1441 | 1429 | |
| ||
1445 | 1433 | |
1446 | 1434 | |
1447 | 1435 | |
1448 | | - |
| 1436 | + |
| 1437 | + |
| 1438 | + |
| 1439 | + |
| 1440 | + |
| 1441 | + |
1449 | 1442 | |
1450 | 1443 | |
1451 | 1444 | |
|
Collapse file
tools/server/server-common.h
Copy file name to clipboardExpand all lines: tools/server/server-common.h+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
107 | 107 | |
108 | 108 | |
109 | 109 | |
110 | | - |
111 | | - |
112 | | - |
| 110 | + |
113 | 111 | |
114 | 112 | |
115 | 113 | |
| ||
325 | 323 | |
326 | 324 | |
327 | 325 | |
| 326 | + |
328 | 327 | |
329 | 328 | |
330 | 329 | |
|
0 commit comments