You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.
Hi @leocavalcante !
I'm happy with Siler on PHP-FPM and I try to use it with Swoole now :)
I have probably a silly question about the mix of Siler Swoole and the Siler Container :
Siler\Container use singleton with static ::getInstance()
Siler\Swoole use Container\set|get to store data about Routing/Request/Response
When I add a counter with Siler\Container\set('count', Siler\Container\get('count', 0) + 1), the count value is incremented requests after requests. I deduce from this behavior that the container values are shared between requests.
When parallel requests income (req A and req B), are we sure that there is no conflict on Container\get(SWOOLE_HTTP_REQUEST) ? I don't find doc about this on swoole website...
How to store informations by request (logged user, config, etc.) and be sure there is no data leak between parallel (and/or one after the other) requests ?
Thanks !
The text was updated successfully, but these errors were encountered:
Hi @yoh
Good question BTW, actually I'm not sure how it will behave, never thought about this before.
I will try to make some tests.
Thanks for bringing this up.
Hi @leocavalcante !
I'm happy with Siler on PHP-FPM and I try to use it with Swoole now :)
I have probably a silly question about the mix of Siler Swoole and the Siler Container :
Siler\Container
use singleton withstatic ::getInstance()
Siler\Swoole
useContainer\set|get
to store data about Routing/Request/ResponseWhen I add a counter with
Siler\Container\set('count', Siler\Container\get('count', 0) + 1)
, the count value is incremented requests after requests. I deduce from this behavior that the container values are shared between requests.When parallel requests income (req A and req B), are we sure that there is no conflict on
Container\get(SWOOLE_HTTP_REQUEST)
? I don't find doc about this on swoole website...How to store informations by request (logged user, config, etc.) and be sure there is no data leak between parallel (and/or one after the other) requests ?
Thanks !
The text was updated successfully, but these errors were encountered: