mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
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:
parent
ba80576b1e
commit
9f99376a8a
2 changed files with 18 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue