From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:39; helo=resqmta-ch2-07v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:39]) by hurricane.the-brannons.com (Postfix) with ESMTPS id DA0A77A50C for ; Thu, 10 Aug 2017 04:47:43 -0700 (PDT) Received: from resomta-ch2-06v.sys.comcast.net ([69.252.207.102]) by resqmta-ch2-07v.sys.comcast.net with ESMTP id flwkdhEijrUTyflx0de0Oo; Thu, 10 Aug 2017 11:48:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1502365710; bh=ji5L6or7dEmHOQX8zsNAS0Cfh4op2JbI3W62URJY1xQ=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=VuWUc9zH+y9BjttTa0ko1yCBJLBl4xFI6LeMZmUThbWIinkOaNwb/qtUBRvyI/C1N hLkEtflrkERHlUcOIBR6VRRKqnqYCAeIXlAe7oPeMr8Fay2tT4PXW9r5gnatjOS7Kx QRIxhI+OKFshnQmvUzs+/Og2dWaiy8B2whr/MbY2RJUkh3vyVMLKvO7oMigC/gjIef 8TSq+Q4zXMQUTRW30IroKesdRUCP37siEzDO5oiMQsaQZz7YLQvn/PVruPNW0sRKdl JBJFBghaBzlrV18bRr8RH6bOvOlO3tdZpNE9I75YFG7esnJDuoGO+0B+oino4eJ6+A 0dwPBIA47gUew== Received: from unknown ([IPv6:2601:408:c301:784d:21e:4fff:fec2:a0f1]) by resomta-ch2-06v.sys.comcast.net with SMTP id flwzdkii4rV3qflx0dvxWp; Thu, 10 Aug 2017 11:48:30 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.0+ Date: Thu, 10 Aug 2017 07:48:29 -0400 Message-ID: <20170710074829.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-910477 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKEPUFtPWoBGfRdhEjo6vGu0PVm4HAXFkk2+xma7FZH+FOiXXXxlLdG6ZwRTE82148axZNo6txFL+IgPit2urfhA+iErDTVjaIWah1mrvg6odI7kU2lp c3zu9kE4OnJbBgkV+UfqhihCPg2pEWOxpWGd437czZ+eXoWZJcYneFWY Subject: [Edbrowse-dev] JS2 and interrupt X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 11:47:44 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-910477 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I changed the default behavior to 1 process; if you still want 2 = processes then export JS2=3Don. (Though this option may go away some = day.) I felt a little better about doing this because ^c is pretty good at = interrupting real world javascript now. (Adam's well founded concern about js locking up all of edbrowse.) It won't stop while(true); but it will stop js that calls our native = functions, innerHTML, createElement, appendChild, etc, and also stops http fetch, which could be stuck for any number of = reasons, like the internet is down. Curl has its own timeouts for fetching data, but they're long, and js = could fetch one script after another after another, sometimes as many = as 20, so if the curl timeout is 30 seconds you're looking at ten = minutes. Best if we interrupt the procedure at a higher level. The page still browses, and you can still interact with the html, and = even javascript. Unlike the previous model, js is still there, it hasn't gone away. It's a controlled interrupt. But all sorts of functions may not be there, because js didn't finish. Don't interrupt a browse and then use the page for something vital like = ecommerce. Anyways give it a try on any site that's really slow. Karl Dahlke --nextpart-eb-910477--