[PATCH] implement stream_set_write_buffer for sockets

From: Date: Sun, 02 Dec 2007 01:37:37 +0000
Subject: [PATCH] implement stream_set_write_buffer for sockets
Groups: php.internals 
Request: Send a blank email to internals+get-33577@lists.php.net to get a copy of this message
Hello, Currently stream_set_write_buffer() only works with file streams. If used on socket streams it always returns -1 and does nothing. This can be quite problematic when using datagram sockets because any datagram bigger than the default 8Kb gets chopped and more than one datagram get sent, eventually messing up with the receiving side. This small patch adds support for sockets in stream_set_write_buffer(), I have tested it and it fixed my problem, but if it needs refinements i'd be glad to try and help more. diff against 5.2.5 is here: http://rectophobia.com/~six/socket_write_buffer.diff Regards, Vincent

« previous php.internals (#33577) next »