Hi Pete,

On Thursday 17 November 2005 00:35, Pete Zaitcev wrote:
> On Wed, 16 Nov 2005 17:12:52 +0100, Duncan Sands <[EMAIL PROTECTED]> wrote:
> 
> > With the speedtouch USB modems, the problem people usually see is:
> 
> > (C) at some point the modem spontaneously disconnects and reconnects
> > (surprisingly common with some motherboards).  pppd takes several seconds
> > to understand that ATM device 0 has died; until it understands this, it
> > keeps a connection open, which means that the ATM device hangs around.
> > The "new" modem (= old one reconnected) creates a new ATM device, which
> > is given device number 1, because number 0 is still being used by the
> > old device.
> 
> The scenario is clear.
> 
> You know what I personally would do it occured to my code? I would work
> to create proper orphan mode for opened instances. Then, new device
> would get assigned number 0, even if someone had device 0 still open.
> The internal structures for the old "device 0" would have been kept
> alive by a (counted) reference from the top side as zombies, to
> disappear when eventually closed.

thanks for the suggestion.  Maybe the ATM code can be tweaked so that
shutdown devices are immediately removed from the list of devices, which
should give the same effect.

> It may be too much work for you, your call. It's easier to suggest
> than to implement properly (without leaking or other bugs).

The problem is that you (and Chas) are right: the whole thing should be
reworked more logically.  However, I've no time to do that, so I've been
looking to improve things by tweaking the current situation.

All the best,

Duncan.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to