mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Use a larger buffer size for receiving RPCs https://www.virtualmin.com/node/54835
This commit is contained in:
@ -151,7 +151,7 @@ while(1) {
|
||||
if (open(FILE, ">$file")) {
|
||||
binmode(FILE);
|
||||
print STDERR "fastrpc: tcpwrite $file writing\n" if ($gconfig{'rpcdebug'});
|
||||
while(read(TRANS, $buf, 1024) > 0) {
|
||||
while(read(TRANS, $buf, 32768) > 0) {
|
||||
local $ok = (print FILE $buf);
|
||||
if (!$ok) {
|
||||
$err = "Write to $file failed : $!";
|
||||
@ -180,7 +180,7 @@ while(1) {
|
||||
local ($data, $got);
|
||||
open(FILE, "<$arg->{'file'}");
|
||||
binmode(FILE);
|
||||
while(read(FILE, $got, 1024) > 0) {
|
||||
while(read(FILE, $got, 32768) > 0) {
|
||||
$data .= $got;
|
||||
}
|
||||
close(FILE);
|
||||
|
Reference in New Issue
Block a user