Skip to content
Browse files

increased maximum socket read size to prevent empty pages and repeate…

…d messages - merged from STABLE
  • Loading branch information...
1 parent 12f6082 commit 5e150ed18363c05e75afe51f5e3e736017fa4da7 skodak committed Feb 6, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/chat/chatd.php
View
2 mod/chat/chatd.php
@@ -967,7 +967,7 @@ function cli_switch($switch, $param = NULL) {
if($changed > 0) {
// Let's see what it has to say
- $data = socket_read($handle, 512);
+ $data = socket_read($handle, 2048); // should be more than 512 to prevent empty pages and repeated messages!!
if(empty($data)) {
continue;
}

0 comments on commit 5e150ed

Please sign in to comment.
Something went wrong with that request. Please try again.