db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Re: [jira] Updated: (DERBY-243) connection toString should uniquely identify the connection
Date Sat, 30 Apr 2005 04:31:45 GMT
David Van Couvering wrote:

> I did notice that when a client connects to the network server, there
> is code that creates a connection number by incrementing a variable in
> DB2jServerImpl (it's disconcerting that it's not synchronized),

I think perhaps the reason it is not synchronized  is because there is
just one ClientThread object  listening on the socket,  assigning
connection numbers and creating connections.

> So, I am leaning towards the increment approach for generating a new
> connection id rather than using UUID, especially since it will work in
> the client code as well.

Sounds good  to me from a usability perspective.  When forced to pour
over a trace I find it much easier to tell 1 from 2 than one UUID from
another.

Kathey



Mime
View raw message