Giter VIP home page Giter VIP logo

docker-openswoole's Introduction

docker-openswoole's People

Contributors

betashepherd avatar cjx2328 avatar danilocgsilva avatar deminy avatar dependabot[bot] avatar doubaokun avatar garveen avatar matyhtf avatar mgttt avatar sy-records avatar twose avatar yangchaogit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-openswoole's Issues

Outdated composer on Docker images

lukas in ~ λ docker run --rm -it openswoole/swoole:php8.2-alpine composer -V
Composer version 2.1.6 2021-08-19 17:11:08

///

docker run --rm -it openswoole/swoole:latest composer -V
Composer version 2.1.6 2021-08-19 17:11:08

Composer is now 2.5.1. I see these images are built recently but why do they have an ancient Composer? :)

Wildcard Setting for ssl_sni_certs

Hello,

I was wondering if the Server Setting ssl_sni_certs can handle wildcard certificates. So in my config it would looks like this...

'ssl_sni_certs' => [
        "*.mydomain.com" => [
            'ssl_cert_file' => "/var/config/star_mydomain_com_cert.pem",
            'ssl_key_file' => "/var/config/star_mydomain_com_key.pem",
        ],
],

[Question] using docker.io/openswoole/swoole:php7.4-alpine, but can't find swoole_version()

Hello, I want to ask, does the docker swoole, isn't a full blown swoole? I tried to call swoole_version, but seems I can't. I check the function that registers using

<?php 

$function = get_defined_functions()["internal"];

$result = array_filter($function, function($d) { return strpos($d, "swoole") !== false; });

var_dump($result);

The output is

array(23) {
  [1227]=>
  string(23) "swoole_coroutine_create"
  [1228]=>
  string(22) "swoole_coroutine_defer"
  [1229]=>
  string(27) "swoole_coroutine_socketpair"
  [1230]=>
  string(28) "swoole_test_kernel_coroutine"
  [1231]=>
  string(40) "swoole_internal_call_user_shutdown_begin"
  [1234]=>
  string(16) "swoole_event_add"
  [1235]=>
  string(16) "swoole_event_del"
  [1236]=>
  string(16) "swoole_event_set"
  [1237]=>
  string(18) "swoole_event_isset"
  [1238]=>
  string(21) "swoole_event_dispatch"
  [1239]=>
  string(18) "swoole_event_defer"
  [1240]=>
  string(18) "swoole_event_cycle"
  [1241]=>
  string(18) "swoole_event_write"
  [1242]=>
  string(17) "swoole_event_wait"
  [1243]=>
  string(17) "swoole_event_exit"
  [1244]=>
  string(18) "swoole_timer_after"
  [1245]=>
  string(17) "swoole_timer_tick"
  [1246]=>
  string(19) "swoole_timer_exists"
  [1247]=>
  string(17) "swoole_timer_info"
  [1248]=>
  string(18) "swoole_timer_stats"
  [1249]=>
  string(17) "swoole_timer_list"
  [1250]=>
  string(18) "swoole_timer_clear"
  [1251]=>
  string(22) "swoole_timer_clear_all"
}

Is it by design that some of the function isn't available (based on https://www.php.net/manual/en/ref.swoole-funcs.php)? What should I do to make swoole_version available inside the container? Thanks

The cli image is not available on m1 mac.

By default, tini for x86 is installed. On platforms other than x86, it seems that you need to install a different tini.

I use a translator so the sentences may be weird.

Basic websocket connection don't work. Needs proper new example?

Implementing an hello world websocket connection from web browser to the available examples codes always fails with a browser error:

WebSocket connection to 'ws://0.0.0.0:92/' failed: Error during WebSocket handshake: Unexpected response code: 200

Comparing the response headers from others websocket solutions, like node ws, node websocket, socket.io and even the old Swoole, I found that the problem is that there are issues with the server response that cause errors in the client. The response headers are way different from previous solutions tested. I tried to make changes to response headers. The errors changed on each tweak, and seemed that I was going to the right way, but still finisheds with WebSocket connection to 'ws://0.0.0.0:8082/' failed: Invalid frame header. Still don't know how to fix this one.

I was thinking if still there's not an proper example to deal with websocket. Or if there are a more serious issue with Swoole\Http\Response that breaks a websocket client connection.

So I would like to request an example aimed to provide a basic and stable websocket connection to a client (preferibly, a client implemented in a web browser), or some help to fix the Invalid frame header message.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.