On Sat, 18 Jan 2020 at 12:39, Sam Ruby <ru...@intertwingly.net> wrote: > > On Fri, Jan 17, 2020 at 5:10 PM sebb <seb...@gmail.com> wrote: > > > > I'm not sure what is the purpose of the weak references when applied > > to instances of the LDAP class. > > > > Why does an instance not use hard references so that they last for the > > life of the instance? > > Passenger applications like the roster tool, the secretary workbench, > and board agenda tool can stay up for hours or even days. See: > https://whimsy.apache.org/status/passenger
I see. > After every request, every hard reference will go away, enabling the > object to be garbage collected. I don't follow. If the hard references go away, then surely the objects can be garbage-collected? > What this generally means is that a > request will have a consistent view of LDAP, and new requests will get > fresh data. Understood. > - Sam Ruby