swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.04k stars 390 forks source link

sock instead of webhost #557

Closed TimoFrenzel closed 6 months ago

TimoFrenzel commented 6 months ago

Hello,

Unfortunately, I couldn't find any other support option.

During peak times, I have the problem that connections sometimes take too long.

I could increase the port range in the kernel, but before doing that, I would like to address Swoole directly via TCP instead of routing it through port 1215, using unix:/tmp/mysocket.sock.

Swoole supports socket connections. How can I accomplish this?

Simply changing the host is not enough.

'host' => 'unix:/tmp/swoole.sock',

Here, "http://" is still being used.

I hope for a response.

Best regards,

Timo