udp sessions in PHP

103 views
Skip to first unread message

Artur Ejsmont

unread,
Feb 8, 2010, 11:40:56 AM2/8/10
to memcached
Hi there,

I cant find sufficient documentation for the udp support and i am a
bit confused.

Is it true that get command is not supported in udp mode or is it just
old versions?

I run 1.4.4 on debian (memcached -u root -vv) and connect to it from
command line like this:

echo $'stats\r\nquit\r\n' | nc -u localhost 11211

i get error like this in memcached output

29 SERVER_ERROR multi-packet request not supported

I can not force php to use memcache as session handler, im sniffing my
tcp and udp traffic on 11211 in/out and only see tcp connections. I
have set (memcache 2.2.5 module)

session.save_handler = memcache
session.save_path = "udp://x.x.x.x:11211"

and its still connection via tcp even that i can see udp in the
phpinfo output.

i thought this should work the same way as tcp just with no
guarantees.

Could anyone please point me to some documentation that could help me
get it working?

thanks

artur

Nick Le Mouton

unread,
Feb 8, 2010, 4:54:24 PM2/8/10
to memcached
pecl/memcache (http://pecl.php.net/package/memcache/) 2.2.5 does not
support udp. The beta's do, but they're still buggy. No work has been
done on this module for ~1 year. pecl/memcached (http://pecl.php.net/
package/memcached/) is more stable and has more features, but has not
implemented udp yet.

Nick

kenneth

unread,
Dec 24, 2012, 1:49:32 AM12/24/12
to memc...@googlegroups.com
i also want to konw why.
 someone know it?
Reply all
Reply to author
Forward
0 new messages