Allow increasing the send buffer to 1MB/connection, and warn if that is exceeded.

It should really close connections that exceed the
limit, but does not do that yet.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4840 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2008-05-22 21:42:29 +00:00 committed by jilles
commit 9f99376a8a
2 changed files with 18 additions and 4 deletions

View file

@ -2,6 +2,7 @@
#define __NET_SENDBUFFER_H
#define DEFAULT_BUFFER_SIZE 8192
#define MAX_BUFFER_SIZE 1048576
struct _NET_SENDBUF_REC {
GIOChannel *handle;
@ -10,6 +11,8 @@ struct _NET_SENDBUF_REC {
int bufsize;
int bufpos;
char *buffer; /* Buffer is NULL until it's actually needed. */
int def_bufsize;
unsigned int dead:1;
};
/* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE