Commit 9026e30a authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

raised timeouts

parent ff07ac4f
...@@ -82,7 +82,7 @@ class RequestFetcher extends Command ...@@ -82,7 +82,7 @@ class RequestFetcher extends Command
$answersRead = $status[0]; $answersRead = $status[0];
$messagesLeft = $status[1]; $messagesLeft = $status[1];
$newJobs = $this->checkNewJobs($operationsRunning, $messagesLeft); $newJobs = $this->checkNewJobs($operationsRunning, $messagesLeft);
if ($newJobs === 0 && $answersRead === 0) { if ($newJobs === 0 && $answersRead === 0) {
usleep(10 * 1000); usleep(10 * 1000);
} }
...@@ -188,11 +188,11 @@ class RequestFetcher extends Command ...@@ -188,11 +188,11 @@ class RequestFetcher extends Command
CURLOPT_RETURNTRANSFER => 1, CURLOPT_RETURNTRANSFER => 1,
CURLOPT_USERAGENT => $job["useragent"], CURLOPT_USERAGENT => $job["useragent"],
CURLOPT_FOLLOWLOCATION => true, CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CONNECTTIMEOUT => 2, CURLOPT_CONNECTTIMEOUT => 8,
CURLOPT_MAXCONNECTS => 500, CURLOPT_MAXCONNECTS => 500,
CURLOPT_LOW_SPEED_LIMIT => 50000, CURLOPT_LOW_SPEED_LIMIT => 50000,
CURLOPT_LOW_SPEED_TIME => 5, CURLOPT_LOW_SPEED_TIME => 10,
CURLOPT_TIMEOUT => 7, CURLOPT_TIMEOUT => 10,
)); ));
if (!empty($job["curlopts"])) { if (!empty($job["curlopts"])) {
...@@ -201,7 +201,7 @@ class RequestFetcher extends Command ...@@ -201,7 +201,7 @@ class RequestFetcher extends Command
if (!empty($this->proxyhost) && !empty($this->proxyport)) { if (!empty($this->proxyhost) && !empty($this->proxyport)) {
curl_setopt($ch, CURLOPT_PROXY, $this->proxyhost); curl_setopt($ch, CURLOPT_PROXY, $this->proxyhost);
if(!empty($this->proxyuser) && !empty($this->proxypassword)){ if (!empty($this->proxyuser) && !empty($this->proxypassword)) {
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->proxyuser . ":" . $this->proxypassword); curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->proxyuser . ":" . $this->proxypassword);
} }
curl_setopt($ch, CURLOPT_PROXYPORT, $this->proxyport); curl_setopt($ch, CURLOPT_PROXYPORT, $this->proxyport);
...@@ -228,6 +228,6 @@ class RequestFetcher extends Command ...@@ -228,6 +228,6 @@ class RequestFetcher extends Command
public function sig_handler($sig) public function sig_handler($sig)
{ {
$this->shouldRun = false; $this->shouldRun = false;
echo("Terminating Process\n"); echo ("Terminating Process\n");
} }
} }
...@@ -47,7 +47,6 @@ class BingBilder extends Searchengine ...@@ -47,7 +47,6 @@ class BingBilder extends Searchengine
); );
} }
} catch (\Exception $e) { } catch (\Exception $e) {
throw $e;
Log::error("A problem occurred parsing results from $this->name:"); Log::error("A problem occurred parsing results from $this->name:");
Log::error($e->getMessage()); Log::error($e->getMessage());
return; return;
......
...@@ -218,6 +218,7 @@ a { ...@@ -218,6 +218,7 @@ a {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr;
gap: 8px; gap: 8px;
margin-bottom: 16px;
>.image { >.image {
&.height-2 { &.height-2 {
...@@ -483,6 +484,7 @@ a { ...@@ -483,6 +484,7 @@ a {
.search-input-submit { .search-input-submit {
border-radius: 5px; border-radius: 5px;
margin-right: 20px;
} }
>* { >* {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment