mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
HTTP Server: Fix random deadlocks when serving multiple concurrent requests
This commit is contained in:
@@ -37,6 +37,11 @@ public class Graph_xnde implements Xox_xnde {
|
||||
|
||||
// get version; NOTE: default is 2; REF: https://noc.wikimedia.org/conf/InitialiseSettings.php.txt and 'wgGraphDefaultVegaVer' => ['default' => 2]; also, extension.json and "GraphDefaultVegaVer": 2
|
||||
Json_doc jdoc = app.Utl__json_parser().Parse(json);
|
||||
if (jdoc == null) {
|
||||
Gfo_usr_dlg_.Instance.Warn_many("", "", "invalid json; page=~{0}", ctx.Page().Url().To_bry_full_wo_qargs());
|
||||
return;
|
||||
}
|
||||
|
||||
int version = jdoc.Get_val_as_int_or(Bry_.new_a7("version"), 2);
|
||||
itm_graph.Version_(wpg.Url(), version);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user