Skip to content

Commit

Permalink
Proxy update: 408, optimization (#1309)
Browse files Browse the repository at this point in the history
* v

* Update satolist.js

* proxy update
  • Loading branch information
maxgithubprofile authored Oct 25, 2024
1 parent c8ee185 commit f7c5815
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/_empty_copypaste/index.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../css/__cssvar";

#pdf{
#_module_{

}
11 changes: 11 additions & 0 deletions proxy16/node/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,17 @@ function rpc(request, callback, obj) {
}

}



if (res.status === 408) {

exceededError = {
error : errorMessage + 'Connection Rejected: sql request timeout',
code : 408
}

}


const data = res?.data;
Expand Down
12 changes: 9 additions & 3 deletions proxy16/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,9 @@ var Proxy = function (settings, manage, test, logger, reverseproxy) {
resolve({
data: '319f9e3f40e7f82ee7d32224fe2f7c1247f7f8f390930574b8c627d0fed3c312',
code: 200,
node: node.exportsafe(),
node: {
key : node.key
},
});
}, f.rand(120, 1000));
});
Expand Down Expand Up @@ -1438,7 +1440,9 @@ var Proxy = function (settings, manage, test, logger, reverseproxy) {
return Promise.resolve({
data: data,
code: 200,
node: node.exportsafe(),
node: {
key : node.key
},
time : time
});
});
Expand All @@ -1452,7 +1456,9 @@ var Proxy = function (settings, manage, test, logger, reverseproxy) {
return Promise.reject({
error: e,
code: e.code,
node: node ? node.export() : null,
node: node ? {
key : node.key
} : null,
});
});
},
Expand Down

0 comments on commit f7c5815

Please sign in to comment.