bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SocketService problems


From: David Sugar
Subject: Re: SocketService problems
Date: Fri, 04 Jan 2002 18:47:39 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914

This is well timed...I was thinking of doing a new release this weekend...

Barnaby Gray wrote:

And the attachment.. oops.

Barnaby

On Fri, Jan 04, 2002 at 08:20:35PM +0000, Barnaby Gray wrote:

I've attached my patch to port.cpp.


------------------------------------------------------------------------

--- ../../CommonC++-1.9.1/src/port.cpp  Tue Oct 30 00:30:18 2001
+++ port.cpp    Fri Dec 28 11:53:28 2001
@@ -274,18 +300,10 @@
        if(port->so >= hiwater)
                hiwater = port->so + 1;

-       if(!first)
-       {
-               first = port;
-               LeaveMutex();
-               Start();
-       }
-       else
-       {
-               LeaveMutex();
-               Update();
-       }                       
        ++count;
+       if(!first) first = port;
+       LeaveMutex();
+       Update();
}

void SocketService::Detach(SocketPort *port)
@@ -444,8 +462,8 @@
                                port = port->next;
                        }
                }
-               poll( mfd.getList(), count + 1, timer );
                LeaveMutex();
+               poll( mfd.getList(), lastcount, timer );

#else
                EnterMutex();






reply via email to

[Prev in Thread] Current Thread [Next in Thread]