Browse Source

increase default connection timeout

PHP-GTK3
yggverse 4 months ago
parent
commit
bb3f7595f7
  1. 2
      src/Entity/Browser/Container/Page.php
  2. 2
      src/Interface/Model/Connection.php
  3. 2
      src/Model/Connection.php
  4. 2
      src/Model/Connection/Gemini.php
  5. 2
      src/Model/Connection/Nex.php

2
src/Entity/Browser/Container/Page.php

@ -135,7 +135,7 @@ class Page @@ -135,7 +135,7 @@ class Page
public function update(
bool $history = true,
int $refresh = 100,
int $timeout = 5
int $timeout = 15
): void
{
// Update title

2
src/Interface/Model/Connection.php

@ -18,7 +18,7 @@ interface Connection @@ -18,7 +18,7 @@ interface Connection
public function request(
string $request,
int $timeout = 5
int $timeout = 15
): void;
public function isCompleted(): bool;

2
src/Model/Connection.php

@ -15,7 +15,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection @@ -15,7 +15,7 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection
{
public function request(
string $request,
int $timeout = 5
int $timeout = 15
): void
{
// Build address instance

2
src/Model/Connection/Gemini.php

@ -23,7 +23,7 @@ class Gemini @@ -23,7 +23,7 @@ class Gemini
public function request(
Address $address,
int $timeout = 5
int $timeout = 15
): void
{
$request = new Request(

2
src/Model/Connection/Nex.php

@ -23,7 +23,7 @@ class Nex @@ -23,7 +23,7 @@ class Nex
// @TODO
public function request(
Address $address,
int $timeout = 5
int $timeout = 15
): void
{
$response = (new \Yggverse\Nex\Client)->request(

Loading…
Cancel
Save