mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Removed /SET dcc_block_size and /SET dcc_fast_send - fast send is now
always used and dcc_block_size is useless with it. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1250 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c1c7674ae2
commit
19dff227d8
7 changed files with 16 additions and 52 deletions
|
|
@ -139,10 +139,11 @@ static void sig_dccget_send(GET_DCC_REC *dcc)
|
|||
/* input function: DCC GET received data */
|
||||
static void sig_dccget_receive(GET_DCC_REC *dcc)
|
||||
{
|
||||
char buffer[512];
|
||||
int ret;
|
||||
|
||||
for (;;) {
|
||||
ret = net_receive(dcc->handle, dcc->databuf, dcc->databufsize);
|
||||
ret = net_receive(dcc->handle, buffer, sizeof(buffer));
|
||||
if (ret == 0) break;
|
||||
|
||||
if (ret < 0) {
|
||||
|
|
@ -152,7 +153,7 @@ static void sig_dccget_receive(GET_DCC_REC *dcc)
|
|||
return;
|
||||
}
|
||||
|
||||
write(dcc->fhandle, dcc->databuf, ret);
|
||||
write(dcc->fhandle, buffer, ret);
|
||||
dcc->transfd += ret;
|
||||
}
|
||||
|
||||
|
|
@ -203,10 +204,6 @@ static void sig_dccget_connected(GET_DCC_REC *dcc)
|
|||
}
|
||||
}
|
||||
|
||||
dcc->databufsize = settings_get_int("dcc_block_size");
|
||||
if (dcc->databufsize <= 0) dcc->databufsize = 2048;
|
||||
dcc->databuf = g_malloc(dcc->databufsize);
|
||||
|
||||
dcc->starttime = time(NULL);
|
||||
dcc->tagread = g_input_add(dcc->handle, G_INPUT_READ,
|
||||
(GInputFunction) sig_dccget_receive, dcc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue