Hi David, > > > But PacRunner doesn't *know* that ConnMan is running, and doesn't know > > > to *wait* for that information. > > > > > > So it usually just returns 'direct://' for the first request that > > > activates it, even though that might be the wrong answer. > > > > > > I'm not sure why it was done this way round. Shouldn't PacRunner have > > > been monitoring ConnMan, rather than vice versa? Then it would *know* > > > when it can start responding to requests. > > > > we want it this way to make PACrunner also usable from NM and other > > connection manager daemons. > > There are other ways to achieve that agnosticism. PACrunner could have > plugins which talk to ConnMan or NM. And which pick up proxy information > from /etc/sysconfig/proxy etc.
I am not completely against turning this around, but keep in mind that ConnMan itself is using PACrunner for proxy lookup when it does portal detection. > > And that race is known. I have this on my list of things to fix and > > mentioned this to everybody (including you) that this exists. > > Yeah, but you may have noticed I'm trying to get PACrunner into working > shape right *now* so that we can get it into MeeGo. Hence trying to have > a coherent conversation about how to fix it. You are so ahead of us in terms of pushing this into production, that we had not time to discuss this properly. Let's do that now. Samuel, what is your opinion. > > We need to delay the initial FindProxyByURL response a little bit to > > give ConnMan time to load the configuration. This is a one time trade > > off when the daemon starts. > > A delay is not the right answer. For a start, it'll be delaying an HTTP > request that the user may well be *waiting* for. And most importantly > it's a race. We want to be event-driven and give a response when we know > we have the answer; not just wait a while and pray. We don't design > behaviour that way. It would be only the first request. That is why I think it is fine. Since even the D-Bus system activation will cause a noticable delay in the first proxy lookup. I am really open for suggestions here since I know this race exists. Regards Marcel _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
