From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out.smtp-auth.no-ip.com (out.smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 2B30877C82 for ; Sat, 26 Dec 2015 00:44:04 -0800 (PST) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id ADBF3400935; Sat, 26 Dec 2015 00:44:20 -0800 (PST) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id tBQ8iJBA012128; Sat, 26 Dec 2015 00:44:19 -0800 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id tBQ8iJwB012121; Sat, 26 Dec 2015 00:44:19 -0800 Date: Sat, 26 Dec 2015 00:44:19 -0800 (PST) From: Kevin Carhart To: Karl Dahlke cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20151125101032.eklhad@comcast.net> Message-ID: References: <20151122181357.eklhad@comcast.net> <20151125101032.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Edbrowse-dev] Rebundle / One program # processes X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2015 08:44:04 -0000 Hi group, To those who celebrate it, merry christmas, Okay, here is my reply to all the messages from today. Thank you for reviewing my code, Karl, and catching my memory oversights. I could revise this now, but I'm inclined to wait a while, because it sounds like you might be about to supercede it with increments in the right direction, on a solid foundation. And this sounded like a good reason not to use S-JAX: > Also, there are several well established design patterns which will > completely kill edbrowse with the new synchronous http. So maybe the zip of S-JAX code was predominantly a proof of concept to get the wheels going around, and it doesn't bother me if it goes away. It sounds as though, if time permits, you're about to supercede it by addressing some of the deeper questions. We're now in one of the deadest weeks of the year, so are you guys likely to do a lot over the next several days? And if so, I'll hold off for a bit on the S-JAX, because I think it may become a moot point. Which is very exciting by the way! Kevin On Fri, 25 Dec 2015, Karl Dahlke wrote: >> Here's what I have for the native implementation of a javascript function. > > Kevin I finally got round to looking at this. > > You should free the strings created by js_c_str() (memory leak). > You may also have to free serverData after it is converted to a js string. > It too is allocated. > javatext should be initialized to null else > the last line will seg fault when httpConnect fails. > Not clear what happens for other error codes besides 200. > > That said, it's a great and simple implementation of > a synchronous http call. > And with my latest commits, > it will use the proxies and agent and cookie jar in the config file. > But it will not use transient or new cookies, like session cookies, > that might be produced by the initial web page fetch from edbrowse, > and it won't until we merge things together and there is but one instance of curl running. > > Next question is could we spin off the http in the background, > which edbrowse indeed can do, > and how that would fit together, > and I'll think about that one, > but meantime I do think some is better than none, > and it might be worth implementing this synchronous routine, > in 30 lines of code, so more websites work, > and then work on the asynchronous model later. > But that's just my opinion / philosophy, > which is not always right. > A website indeed could work, that didn't work before, > but you may have to wait a few seconds for the http to return serially - > well I'd make that tradeoff for now. > > anyways if you want to send me a revised function, or patch, or whatever... > > Karl Dahlke > _______________________________________________ > Edbrowse-dev mailing list > Edbrowse-dev@lists.the-brannons.com > http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists