[network-manager-fortisslvpn] contrib: bigger buffer for sslproxy



commit a92a51c5da439406f3c18b5faca5bbbff0949d0e
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Sep 21 15:03:10 2015 +0200

    contrib: bigger buffer for sslproxy

 contrib/sslproxy.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/contrib/sslproxy.pl b/contrib/sslproxy.pl
index c45bac1..4c41710 100644
--- a/contrib/sslproxy.pl
+++ b/contrib/sslproxy.pl
@@ -77,14 +77,14 @@ sub serve_client
 
                if ($poll->events ($client) == IO::Poll::POLLIN) {
                        my $buf;
-                       $client->sysread ($buf, 4096);
+                       $client->sysread ($buf, 65535);
                        dump_chunk ('client', $buf);
                        exit unless length $buf;
                        print $backend $buf;
                }
                if ($poll->events ($backend) == IO::Poll::POLLIN) {
                        my $buf;
-                       $backend->sysread ($buf, 4096);
+                       $backend->sysread ($buf, 65535);
                        dump_chunk ('backend', $buf);
                        exit unless length $buf;
                        print $client $buf;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]