Skip to content

Commit

Permalink
fix #19
Browse files Browse the repository at this point in the history
close #19
  • Loading branch information
garveen committed Jan 24, 2017
1 parent 3583ccc commit ad3fe8c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Wrapper/SwooleFastCGIWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ public function __construct($host, $port)

public function start()
{
// override
config(['laravoole.base_config.deal_with_public' => false]);

if (!empty($this->handler_config)) {
$this->server->set($this->handler_config);
}
Expand All @@ -32,4 +29,11 @@ public function onReceive($serv, $fd, $from_id, $data)
{
return $this->receive($fd, $data);
}

public function onWorkerStart($serv, $worker_id)
{
parent::onWorkerStart($serv, $worker_id);
// override
config(['laravoole.base_config.deal_with_public' => false]);
}
}

0 comments on commit ad3fe8c

Please sign in to comment.