juhyunkwon / php-handlersocket

Automatically exported from code.google.com/p/php-handlersocket
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Persistent connections #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I see that php-hs stream is not persistent because in handlersocket.c 

char *hashkey = NULL 

so 

hs->stream = php_stream_xport_create(
        Z_STRVAL_P(hs->server), Z_STRLEN_P(hs->server),
        ENFORCE_SAFE_MODE | REPORT_ERRORS,
        STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT,
        hashkey, &tv, NULL, &errstr, &err);

haskey is null.

I think is important that php-handlersocket has a pool of connections for a 
very high usage.  

Perphaps an optional parameter like [, resource $link_identifier ] --> hash_key 
 solves the issue.

Original issue reported on code.google.com by pr...@llacunainnova.com on 24 Aug 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Hi pruiz,

Would it be possible for you to add a patch for this? If not I'll take a look 
in to it soon and see what I can add.

Matt.

Original comment by mattwar...@gmail.com on 28 Oct 2011 at 7:59