We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903126d commit fd0ea23Copy full SHA for fd0ea23
src/webserver/http.rs
@@ -93,7 +93,12 @@ impl Write for ResponseWriter {
93
fn flush(&mut self) -> std::io::Result<()> {
94
self.response_bytes
95
.try_send(Ok(mem::take(&mut self.buffer).into()))
96
- .map_err(|e| std::io::Error::new(std::io::ErrorKind::WouldBlock, e.to_string()))
+ .map_err(|e|
97
+ std::io::Error::new(
98
+ std::io::ErrorKind::WouldBlock,
99
+ format!("{e}: Database messages limit exceeded. The server cannot store more than {} pending messages in memory.", self.response_bytes.capacity())
100
+ )
101
102
}
103
104
0 commit comments