msgpack/msgpack-rpc — pull request #53 by sugi (2012-04-09 12:59:10+00:00)
Title: PHP library fixes: persistent connection and server socket tune

Hello!

I made little changes on PHP client and server again.
Please consider to merge these fixes.

Client: persistent connection support
-----------------------------------------------------

This change provides persistent connection support for PHP client with PHP build-in pfsockopen() function. TCP connection will be kept for next request until timeout.

Persistent connection is off in default. User can enable by setting followed;

MessagePackRPC_Back::$allow_persistent = true;

When set allow_persistent to true, use_shared_connection and reuse_connection will not affected.

Note: User can NOT change connetion concurrency (One connection per process by PHP limitation).

Server: Set SO_REUSEADDR for restart error
-------------------------------------------------------------------

This fix just set SO_REUSEADDR option to avoid "Address Already in Use" error when restarting the server.