On client, incoming response bodies are limited to this plus
a fixed constant metadata overhead of 10000 bytes.
- Server uses minimum of client and server value (old servers
- just uses server's value).
+ Server uses minimum of client's and server's configured values
+ (old servers just use server's value).
[``65536`` (bytes); ``LIMIT``: ``262144``]
+``max_batch_up``
+ Size limit for request upbound payloads. On client, used directly,
+ with ``LIMIT`` applied.
+
+ On server, only ``LIMIT`` is relevant, and must be at least the
+ client's configured value (checked). xxx put in metadata
+
+ [``4000`` (bytes); ``LIMIT``: ``262144``]
+
``max_queue_time``
Discard packets after they have been queued this long
waiting for http.
Client will hold off sending more requests than this to
server even if it has data to send. [``6``]
-``max_batch_up``
- Size limit for request upbound payloads. [``4000`` (bytes)]
-
``success_report_interval``
If nonzero, report success periodically. Otherwise just
report it when we first have success. [``3600`` (s)]
#[limited] pub max_queue_time: Duration,
#[limited] pub http_timeout: Duration,
#[limited] pub target_requests_outstanding: u32,
+ #[special(special_max_up, SKL::PerClient)] pub max_batch_up: u32,
// Ordinary settings, used by both, not client-specifi:
#[global] pub addrs: Vec<IpAddr>,
// Ordinary settings, used by client only:
#[client] pub http_timeout_grace: Duration,
#[client] pub max_requests_outstanding: u32,
- #[client] pub max_batch_up: u32,
#[client] pub http_retry: Duration,
#[client] pub success_report_interval: Duration,
#[client] pub url: Uri,
vnetwork = 172.24.230.192
[LIMIT]
+max_batch_up = 262144
max_batch_down = 262144
max_queue_time = 121
http_timeout = 121
assert_eq!(skl, SKL::None);
self.link.clone()
}
+
+ #[throws(AE)]
+ pub fn special_max_up(&self, key: &'static str, skl: SKL) -> u32 {
+ assert_eq!(skl, SKL::None);
+ match self.end {
+ LinkEnd::Client => self.ordinary(key, SKL::PerClient)?,
+ LinkEnd::Server => self.ordinary(key, SKL::Limits)?,
+ }
+ }
}
impl InstanceConfig {