|
RE: Rfcomm Use Count: msg#00072linux.bluez.devel
Marcel, > > Each time I connect with l2test -n, I see the use count go > up by 2. When I > > hit ctrl-c on l2test, the use count goes down by 1 after a > few seconds. > > These excess increments (one for each connection) don't go > away until the > > test program is killed. > > > > So there is a bit of a problem. > > then we use some kind of garbage collection already. This is > bad and we > shouldn't do so, but right now I don't see the correct fix for this > behaviour. I just tried an experiment where I listen for a while before calling accept(). I can raise the use cound by connecting, disconnecting, etc (as before). As soon as accept() is called, the excess use count goes away. Before accept() is called, the server will start refusing connections after you fill up the accept queue. The queue is emptied with a single call to accept(). -Daryl. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Rfcomm Use Count: 00072, Daryl Van Vorst |
|---|---|
| Next by Date: | RE: Rfcomm Use Count: 00072, Marcel Holtmann |
| Previous by Thread: | RE: Rfcomm Use Counti: 00072, Marcel Holtmann |
| Next by Thread: | RE: Rfcomm Use Count: 00072, Marcel Holtmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |