From f8b9490f03e08bd4f459ee3c021ce51ec267db21 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Thu, 24 May 2007 12:34:10 +0000 Subject: [PATCH] Increased read buffer size to 64K --- CHANGES | 8 ++++++++ lib/silccore/README | 2 +- lib/silccore/silcpacket.c | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index d2da41ea..7ab655b4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,11 @@ +Thu May 24 15:30:31 EEST 2007 Pekka Riikonen + + * Fixed channel and server entry freeing in client library. + Affected file is lib/silcclient/client_entry.c. + + * Do not allow stopping client before it has been started. + Affected file is lib/silcclient/client.c. + Wed May 23 23:21:03 EEST 2007 Pekka Riikonen * Fixed formatted nickname renaming to rename also irssi's diff --git a/lib/silccore/README b/lib/silccore/README index 1ac9cc1f..a6cb9295 100644 --- a/lib/silccore/README +++ b/lib/silccore/README @@ -45,7 +45,7 @@ Locking in packet engine Currently the engine lock is used only when the packet free list is accessed, or new stream is added or removed. The packet free list, however, is accessed for all incoming packets. Application free's the packet context so -the lock must later be acquired be putting the unused packet context back +the lock must later be acquired for putting the unused packet context back to the free list. It might be possible to later put the packet free list to per-thread context. diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index 89e12a47..021041b0 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -306,7 +306,7 @@ static inline SilcBool silc_packet_stream_read(SilcPacketStream ps, inbuf = silc_dlist_get(ps->sc->inbufs); if (!inbuf) { /* Allocate new data input buffer */ - inbuf = silc_buffer_alloc(SILC_PACKET_DEFAULT_SIZE * 61); + inbuf = silc_buffer_alloc(SILC_PACKET_DEFAULT_SIZE * 65); if (!inbuf) { silc_mutex_unlock(ps->lock); return FALSE; @@ -716,7 +716,7 @@ SilcPacketStream silc_packet_stream_create(SilcPacketEngine engine, ps->sc->schedule = schedule; /* Allocate data input buffer */ - inbuf = silc_buffer_alloc(SILC_PACKET_DEFAULT_SIZE * 61); + inbuf = silc_buffer_alloc(SILC_PACKET_DEFAULT_SIZE * 65); if (!inbuf) { silc_free(ps->sc); ps->sc = NULL; -- 2.24.0