Increased read buffer size to 64K
authorPekka Riikonen <priikone@silcnet.org>
Thu, 24 May 2007 12:34:10 +0000 (12:34 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 24 May 2007 12:34:10 +0000 (12:34 +0000)
CHANGES
lib/silccore/README
lib/silccore/silcpacket.c

diff --git a/CHANGES b/CHANGES
index d2da41ea9e34b7819e9807545d5db5d33ded7f84..7ab655b4f061b2ec4219e97af6d4b7e8ff5f8403 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,11 @@
+Thu May 24 15:30:31 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
+
+       * 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 <priikone@silcnet.org>
 
        * Fixed formatted nickname renaming to rename also irssi's
index 1ac9cc1fced88d54befe87ec5369330fb9ae25e8..a6cb9295108f55080504ba969315b589ec4ad1b6 100644 (file)
@@ -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.
 
index 89e12a476a31a2b588c79a792021eb6c21f3f657..021041b03c9441e8f6e71531a1f83e6ae19f0c6a 100644 (file)
@@ -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;