Commit 43f8c83d authored by Niels Möller's avatar Niels Möller
Browse files

* src/lsh.c (WINDOW_SIZE): Decreased to 10000.

* src/server_session.c (WINDOW_SIZE): Likewise.

Rev: src/server_session.c:1.29
parent 5ce82415
......@@ -200,8 +200,8 @@ do_receive(struct ssh_channel *c,
/* We may send more data */
static void
do_send(struct ssh_channel *s,
struct ssh_connection *c UNUSED)
do_send_adjust(struct ssh_channel *s,
UINT32 i UNUSED)
{
CAST(server_session, session, s);
......@@ -282,12 +282,13 @@ make_server_session(struct user *user,
(session_requests object alist)))
*/
#define WINDOW_SIZE (SSH_MAX_PACKET << 3)
#define WINDOW_SIZE 10000
static void
do_open_session(struct channel_open *s,
struct ssh_connection *connection UNUSED,
UINT32 type UNUSED,
UINT32 max_packet UNUSED,
struct simple_buffer *args,
struct command_continuation *c,
struct exception_handler *e)
......@@ -686,7 +687,7 @@ spawn_process(struct server_session *session,
}
channel->receive = do_receive;
channel->send = do_send;
channel->send_adjust = do_send_adjust;
channel->eof = do_eof;
session->process
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment