Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 27 14:18
    frankvanhest commented #183
  • Nov 26 17:07

    WyriHaximus on master

    Skip invalid nameserver entries… Merge pull request #187 from cl… (compare)

  • Nov 26 17:07
    WyriHaximus closed #187
  • Nov 26 17:06

    WyriHaximus on master

    Refactor `Parser` to avoid assi… Merge pull request #186 from cl… (compare)

  • Nov 26 17:06
    WyriHaximus closed #186
  • Nov 26 14:45
    clue closed #183
  • Nov 26 14:45
    clue commented #183
  • Nov 26 14:39
    clue labeled #183
  • Nov 26 14:34
    remicollet commented #181
  • Nov 26 14:34
    remicollet closed #181
  • Nov 26 14:34
    clue edited #187
  • Nov 26 14:31
    clue review_requested #187
  • Nov 26 14:29
    clue commented #181
  • Nov 26 14:26
    clue labeled #187
  • Nov 26 14:26
    clue opened #187
  • Nov 26 14:26
    clue milestoned #187
  • Nov 26 14:26
    clue labeled #187
  • Nov 26 13:04
    clue unlabeled #186
  • Nov 26 13:04
    clue labeled #186
  • Nov 26 13:02
    clue review_requested #186
Marc Morera
@mmoreram
I'm doing it each second
Niklas Keller
@kelunik
If you already do that, then there's probably still a reference somewhere that needs to be found.
Marc Morera
@mmoreram
If I make requests by using a simple console, nothing happens. When I do it though the browser, specifically adding a "Connection: close" header, nothing. Flat memory. When I use persistent connections, around ~20k per connection
Seems that the ReactPHP team is already working on that - reactphp/http#315
Marc Morera
@mmoreram
This -> reactphp/http#425 <- Is definitely the answer
@WyriHaximus Do you think that there is a chance you can (rebase and) merge this PR, please?
Cees-Jan Kiewiet
@WyriHaximus
@mmoreram Continuing work on that after work today, need to rebase and do some more changes but yes it's on the top of my list for HTTP
Marc Morera
@mmoreram
Thanks :)
Cees-Jan Kiewiet
@WyriHaximus
@fritz-gerneth Also just merged and released that last PR you did :+1:
Fritz Gerneth
@fritz-gerneth
thanks :)
@WyriHaximus who does https://github.com/WyriHaximus/php-metrics relate to the inspector packages? I see https://github.com/reactphp-inspector/http-middleware/ has a dependency on it?
though much of its content seems quite redundant to the other inspector packages?
Cees-Jan Kiewiet
@WyriHaximus
@fritz-gerneth Been switching to that as a base metrics package, but not all packages have been fully migrated yet or deprecated.
Fritz Gerneth
@fritz-gerneth
so the plan is to move/merge all inspector packages into this?
Cees-Jan Kiewiet
@WyriHaximus
To build them on top of it
Fritz Gerneth
@fritz-gerneth
I mean the more low-level packages like metric/metrics / printer / ..
Cees-Jan Kiewiet
@WyriHaximus
Ow yes that's is the plan
Fritz Gerneth
@fritz-gerneth
got it :)
then I'll move forward to update that package to 8.1 too
Cees-Jan Kiewiet
@WyriHaximus
:+1:
Cees-Jan Kiewiet
@WyriHaximus
@clue Just updated reactphp/http#425 with 408's, will do docs later today and check the relevant RFC's to be sure this is the right way of handing 408's
Cees-Jan Kiewiet
@WyriHaximus
@iorsa @clue As discussed, added directory and file methods to the filesystem adapters aside detect, will do docs later today: reactphp/filesystem#97
1 reply
Cees-Jan Kiewiet
@WyriHaximus
@fritz-gerneth Just started the php-metrics release process, should be tagged in a few seconds
Fritz Gerneth
@fritz-gerneth
@WyriHaximus what's the point of https://github.com/reactphp-parallel/object-proxy-attributes (in particular for php-metrics)?
Cees-Jan Kiewiet
@WyriHaximus
@fritz-gerneth It's for use with reactphp-parallel to make the proxy work more performant. Just unlocked PHP 8 on that package and tagged a release
Eduardo
@carliedu

Hi all. I'm here again. Who can help me? I have an MySQL promise where I need to pass an variable with data from one ->then to the next ->then. ```$db->readPannelperOrderId()

    ->then(function (QueryResult $queryDbResult) use ($db) {

    $qtRegs = count($queryDbResult->resultRows);

    $IN = "";

    for($i = 1; $i <= $qtRegs; $i++) 

    {

        $IN = $IN.",".substr($queryDbResult->resultRows[$i-1]['UserCode'], 10, 99);

    }

    $IN = substr($IN, 1);

    $a_regsPannel = $queryDbResult->resultRows;

    return $db->readOrdersInPannel($IN);

    })

    ->then(function (QueryResult $queryDbResult) use ($db, $a_regsPannel) {

    print_r($queryDbResult);

    print_r($a_regsPannel);

    })

    ->otherwise(function (Throwable $exception)  {

    echo("An error occured:\n[".$exception."]\n");

    });

I'm receiving an errorUndefined variable $a_regsPainelfor the variable$a_regsPannel```. Whre's my error? Thanks in advance. Best

Eduardo
@carliedu
The variable $a_regsPainel is not passed from one then to the next.
Eduardo
@carliedu
Hi again. I solved the problem including the variable as an parameter in $db->readOrdersInPannel($IN, $a_regsPannel).
It will not be used by readOrdersInPannel, but resolves the case.
Sorry to bother you.
Eduardo
@carliedu
I'm seeing now it was not solved. I thought this had resolved, but I see now that it continues to get the error Undefined variable $a_regsPainel. If anyone can help me, i appreciate it.
Eduardo
@carliedu
Hi. I solved the problem. Defined the variable before the first then, with a dummy value. Best
Volker
@skydiablo
hi! thx and big gratz to framworkX !!!!
my first step was add an DI layer :D:D:D
;)
so another topic, i have a problem with this controller:
    public function __invoke(ServerRequest $request)
    {
        $csvStream = new \Clue\React\Csv\AssocDecoder($request->getBody(), ';');

        $def = new Deferred();

        $csvStream->on('data', function ($data) {
            $this->updateRepository->csvUpdate($data);
        })->on('close', function () use ($def) {
            $def->resolve(
                new Response(302, ['location' => '/'])
            );
        })->on('error', function ($error) use ($def) {
            $def->resolve(
                new Response(
                    500,
                    ['content-type' => 'text/json'],
                    json_encode(['error' => $error->getMessage()])
                )
            );
        });
        return $def->promise();
    }
Volker
@skydiablo

i send an CSV file direkt in body (~20MB) ... but the code do nothing? the

        $csvStream->on('data', function ($data) {

'data' event is/will never run? no exception or other signs... any hints ?

Eduardo
@carliedu
“Do nothing” is for me one of the “weird/boring” things in ReactPHP. If it occurs, now I know that an “use” is missing. Have defined the use command to \Clue\React\Csv\… ?
Christian Lück
@clue
@skydiablo Thank you! ❤️
And you're right, I probably should have announced this in this channel as well: 🎉
Framework X is now in public beta! 🚀🚀🚀

We're live! 🚀🚀🚀

Framework X is now public! The simple and fast PHP micro framework for reactive web applications that run anywhere. Or simply put: Async made easy. 🔥

https://framework-x.org

Join the party! 🎉
#nextgen #async #php #opensource

Via https://twitter.com/x_framework/status/1463160480030146565


Regarding your code: Code structure LGTM, but I suppose you're running into the default upload limit of 64 KiB: https://framework-x.org/docs/api/request/#uploads
I agree that this is both inconvenient and intransparent. You can join the discussion here: https://github.com/clue/framework-x/discussions/69
Martin Zajíc
@zajca
@skydiablo What DI, did you try? I was playing with Symfony stuff https://github.com/zajca/FrameworkX-Playground
Nice work BTW Clue
Volker
@skydiablo
Yes, i used the symfony DI implementation. Also add an extension to define routings via config file. So auto-wire and define routings via yaml is coding like piece of cake 😁
Volker
@skydiablo
I have migrate an AMP Project to X by hours! Only the upload limitation has stop this home run...
Btw: GitHub is down 😭
Christian Lück
@clue
@skydiablo Sounds fantastic! (The migration that is, not GitHub's outage)

@zajca Thank you Martin!
If you're more into Symfony, sounds like you may also like @driftphp (say hi to @mmoreram! 👋)
But nice to see how you've integrated an existing DIC! Makes me wonder how much support X should provide out of the box…