Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swoole extension #297

Closed
simoheinonen opened this issue Sep 17, 2018 · 13 comments
Closed

Swoole extension #297

simoheinonen opened this issue Sep 17, 2018 · 13 comments

Comments

@simoheinonen
Copy link
Contributor

https://secure.php.net/manual/en/book.swoole.php

Would be great

@eslizn
Copy link

eslizn commented Nov 20, 2018

+1

@osbre
Copy link

osbre commented Jan 15, 2019

+1

@Matrix-X
Copy link

Do we have the some example that show us how to add come customized php extension ourself in some easy way , step by step?

@pedro-santiago
Copy link

Please. I'd easily pay for someone to do that.

@kudlas
Copy link

kudlas commented Jul 2, 2020

+1

@tillkruss
Copy link

@simoheinonen: Feel free to submit a PR here: https://github.com/cachewerk/heroku-php-extensions

@foremtehan
Copy link

foremtehan commented Mar 18, 2021

@dzuelke Now i really need it as taylor introduced laravel octane with swoole 😩

@tillkruss
Copy link

I've added easy access to Swoole v4.6.4 on Heroku here:
https://github.com/cachewerk/heroku-php-extensions

@morrislaptop
Copy link

Thanks to @tillkruss , getting Octane running on Heroku is super easy - I've written up the steps at https://morrislaptop.medium.com/laravel-octane-on-heroku-6e7326238eda

@foremtehan
Copy link

@morrislaptop thanks man, Everything works now but the only issue is the octane console doesnt show the incoming requests:

$ heroku logs --ps web

2021-04-09T20:35:57.620534+00:00 app[web.1]: INFO  Server running…
2021-04-09T20:35:57.620607+00:00 app[web.1]:
2021-04-09T20:35:57.620650+00:00 app[web.1]: Local: http://0.0.0.0:9164
2021-04-09T20:35:57.620707+00:00 app[web.1]:
2021-04-09T20:35:57.620744+00:00 app[web.1]: Use Ctrl+C to stop the server
2021-04-09T20:35:57.620790+00:00 app[web.1]:
2021-04-09T20:35:57.965643+00:00 heroku[web.1]: State changed from starting to up
2021-04-09T20:36:19.176083+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 30 seconds of SIGTERM
2021-04-09T20:36:19.186714+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2021-04-09T20:36:19.289191+00:00 heroku[web.1]: Process exited with status 137

It has some errors but the server working correctly, It just sit there and wont log anything

@tillkruss
Copy link

Raise this issue with the Octane team, not here.

@dzuelke
Copy link
Contributor

dzuelke commented Oct 13, 2021

Word of warning: Swoole's admin interface hot-loads code from a third-party server; see https://github.com/swoole/swoole-src/blob/1bc39175acb7d339a9d2d046e031dd9561adb1eb/ext-src/php_swoole_library.h#L7260-L7283

https://pecl.php.net/package/openswoole looks to be a fork that wants to remediate that, but for now, this is a big no-no.

@foremtehan
Copy link

@dzuelke swoole/swoole-src#4434 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants