mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Closes #484
This commit is contained in:
@@ -203,7 +203,8 @@ namespace ArchiSteamFarm {
|
|||||||
case GlobalConfig.EWCFBinding.NetTcp:
|
case GlobalConfig.EWCFBinding.NetTcp:
|
||||||
result = new NetTcpBinding {
|
result = new NetTcpBinding {
|
||||||
// This is a balance between default of 8192 which is not enough, and int.MaxValue which is prone to DoS attacks
|
// This is a balance between default of 8192 which is not enough, and int.MaxValue which is prone to DoS attacks
|
||||||
ReaderQuotas = { MaxStringContentLength = ushort.MaxValue },
|
// We assume maximum of 1024 characters per each bot included in the response, and maximum of 255 bots overall
|
||||||
|
ReaderQuotas = { MaxStringContentLength = byte.MaxValue * 1024 },
|
||||||
|
|
||||||
// We use SecurityMode.None for Mono compatibility
|
// We use SecurityMode.None for Mono compatibility
|
||||||
// Yes, also on Windows, for Mono<->Windows communication
|
// Yes, also on Windows, for Mono<->Windows communication
|
||||||
@@ -214,14 +215,16 @@ namespace ArchiSteamFarm {
|
|||||||
case GlobalConfig.EWCFBinding.BasicHttp:
|
case GlobalConfig.EWCFBinding.BasicHttp:
|
||||||
result = new BasicHttpBinding {
|
result = new BasicHttpBinding {
|
||||||
// This is a balance between default of 8192 which is not enough, and int.MaxValue which is prone to DoS attacks
|
// This is a balance between default of 8192 which is not enough, and int.MaxValue which is prone to DoS attacks
|
||||||
ReaderQuotas = { MaxStringContentLength = ushort.MaxValue }
|
// We assume maximum of 1024 characters per each bot included in the response, and maximum of 255 bots overall
|
||||||
|
ReaderQuotas = { MaxStringContentLength = byte.MaxValue * 1024 }
|
||||||
};
|
};
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case GlobalConfig.EWCFBinding.WSHttp:
|
case GlobalConfig.EWCFBinding.WSHttp:
|
||||||
result = new WSHttpBinding {
|
result = new WSHttpBinding {
|
||||||
// This is a balance between default of 8192 which is not enough, and int.MaxValue which is prone to DoS attacks
|
// This is a balance between default of 8192 which is not enough, and int.MaxValue which is prone to DoS attacks
|
||||||
ReaderQuotas = { MaxStringContentLength = ushort.MaxValue },
|
// We assume maximum of 1024 characters per each bot included in the response, and maximum of 255 bots overall
|
||||||
|
ReaderQuotas = { MaxStringContentLength = byte.MaxValue * 1024 },
|
||||||
|
|
||||||
// We use SecurityMode.None for Mono compatibility
|
// We use SecurityMode.None for Mono compatibility
|
||||||
// Yes, also on Windows, for Mono<->Windows communication
|
// Yes, also on Windows, for Mono<->Windows communication
|
||||||
|
|||||||
Reference in New Issue
Block a user