From a9dd41c978f37b858ea90dd1690323faae7ff65a Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Sep 2024 08:29:46 +0300 Subject: [PATCH] define socket protocol for gemini connection --- src/app/browser/main/tab/page.cpp | 4 ++++ src/app/browser/main/tab/page.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/src/app/browser/main/tab/page.cpp b/src/app/browser/main/tab/page.cpp index 5fdeac4d..2c1a9b45 100644 --- a/src/app/browser/main/tab/page.cpp +++ b/src/app/browser/main/tab/page.cpp @@ -282,6 +282,10 @@ void Page::navigation_reload( Gio::TlsCertificateFlags::NO_FLAGS ); + socket__client->set_protocol( + Gio::Socket::Protocol::TCP + ); + socket__client->set_timeout( 15 // @TODO ); diff --git a/src/app/browser/main/tab/page.hpp b/src/app/browser/main/tab/page.hpp index 6eb733e2..f4cf5b0b 100644 --- a/src/app/browser/main/tab/page.hpp +++ b/src/app/browser/main/tab/page.hpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include