Well after 2 days of chasing the non-connection bug, I'm still not successful in locating the bug. But first a few points: 1. Mac-Fltk 1.3 indeed contains code for "select"ing socket events. I found this myself and later Manolo verified it. The comment that Jorge mentioned is a leftover, but the code is there. In fact it runs in a pthread, and the whole system wouldn't work without it anyway. 2. So I'm now convinced the problem is somewhere in Dillo. Here is what I have nailed it down to so far: It seems to me that the problem might have to do with "repush". I run the program as: $src/dillo | grep Nav_, and I can get no connection regardless of the websites until I enter a URL that forces a repush. I have a list of websites that do not entice a repush (some of the times): www.yahoo.com, www.google.com, http://www.maketemplate.com/htmlgenerator/htmlout.php autos.yahoo.com, and as long as I keep entering any of these addresses after a fresh start and I don't see a repush message in terminal, I will get nothing in my tabs. As soon as I enter a URL that does entice a repush, the whole system works, including the previous blocked tabs. If later on again a tab doesn't load up, I can make the system work by opening other tabs and entering URLs until a repush happens. So, what is this repush business? And do you think it can have anything to do with the bug I'm seeing? By the way, the busy wait issue seems to be a different bug and just happens to coincide. No matter which website I enter, the first tab (whether I enter URL manually or on command line) never connects and always forces a busy wait. As soon as I open another tab and enter any URL, regardless of whether it will do a repush and open the clog or not, the busy-wait ends. P.S. In my opinion (and ignoring this pesky bug) the single most important feature lacking in dillo is support for floating elements. As soon as we have it, dillo is as good as NetSurf (http://www.netsurf-browser.org/) in functionality with half the memory footprint. As far as I can tell NetSurf is the current champ of low resource + good enough functionality, while IMHO dillo has more potential. -Reza On Fri, May 27, 2011 at 7:11 PM, reza farivar <rf.opensource@gmail.com>wrote:
On Fri, May 27, 2011 at 3:53 PM, Jorge Arellano Cid <jcid@dillo.org>wrote:
On Fri, May 27, 2011 at 03:25:32PM -0500, reza farivar wrote:
On Fri, May 27, 2011 at 3:18 PM, Jorge Arellano Cid <jcid@dillo.org> wrote:
On Fri, May 27, 2011 at 12:46 PM, Benjamin Johnson < obeythepenguin@gmail.com
wrote:
On Fri, 27 May 2011 13:38:43 -0400, reza farivar < rf.opensource@gmail.com> wrote:
Yes. Well, the only plugin I could see is the save button on the
On Fri, May 27, 2011 at 01:53:08PM -0500, reza farivar wrote: panel,
> and > it can successfully navigate the filesystem and save a page correctly. >
That one isn't a plugin, actually. Does the bookmarks button work?
Yes, bookmarks work. (This is a bit of strange implementation of bookmarks, no? took me a bit to find out difference of section and item)
Good!
If you can see the html page from the bookmarks, it means the whole dpi framework is working on Mac; they communicate using sockets.
So it seems the main thing pending is socket support in fl_wait for Mac (see my previous email).
Yes, I also think it's the source of this problem (see my other email).
But what really perplexes me is that this happens only when I enter a URL manually. When I follow links from one page to another it never happens. Are you guys using different (FLTK) functions when opening a new page or following a links (whether in the same tab or in a new tab)?
No, but when you hit ENTER, FLTK has a chance to queue events and zero-wait timeouts for the widget callback and necessary stuff. OTOH, clicking a link goes another path (inside dillo).
Can you point me to parts of code for either of these two code paths? Filename / line number should suffice.
And it seems that as Dillo "warms up" I get less of this problem...
Timimg issues are moody. e.g. Have you tried dillo listening a good mp3? :-)
BTW, good you asked Manolo G. (FWIW, FLTK2 has code for socket events in Mac).
-- Cheers Jorge.-
_______________________________________________ Dillo-dev mailing list Dillo-dev@dillo.org http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev