mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
fix maximum payload of 16 kB by using write_all method, hold bytes on request error
This commit is contained in:
parent
4f6799a495
commit
1ff38ee838
3 changed files with 20 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ use std::fmt::{Display, Formatter, Result};
|
|||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Request(glib::Error),
|
||||
Request(glib::Bytes, glib::Error),
|
||||
Response(crate::client::connection::response::Error),
|
||||
TlsClientConnection(glib::Error),
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ pub enum Error {
|
|||
impl Display for Error {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
match self {
|
||||
Self::Request(e) => {
|
||||
Self::Request(_, e) => {
|
||||
write!(f, "Request error: {e}")
|
||||
}
|
||||
Self::Response(e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue