<div dir="ltr">Hi.<div><br></div><div>I was loading the VMMaker package(s), and after manually opening the debugger and restarting at #httpGet:do: about 10 times, I implemented this hack so that I didn't have to do that anymore.</div><div><br></div><div>I *think* this is fixing the issue - haven't had it raise errors while 'timing out' on loading packages since this (the timeout were sub-second - the connection hadn't gone through yet).  Still, it might just be timing - this isn't really a repeatable bug.</div><div><br></div><div>Not in Trunk because it is definitely a hack - but it makes things work nicer.</div><div><br></div><div>Also, committing packages to the inbox with this loaded doesn't result in walkbacks (from timeouts and whatnot) for me.  Although it does take a long time to finish.</div><div><br></div><div>-cbc</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 28, 2018 at 5:08 PM <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A new version of WebClient-Core was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/WebClient-Core-cbc.118.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/WebClient-Core-cbc.118.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: WebClient-Core-cbc.118<br>
Author: cbc<br>
Time: 28 October 2018, 5:08:23.571079 pm<br>
UUID: 683fbe3b-418f-a443-9a20-3f2a7af4b7e1<br>
Ancestors: WebClient-Core-pre.117<br>
<br>
A hack to work around connectionTimedOut annoyances when opening packages from Trunk (sometimes).<br>
<br>
=============== Diff against WebClient-Core-pre.117 ===============<br>
<br>
Item was changed:<br>
  ----- Method: WebClient>>httpGet:do: (in category 'methods') -----<br>
  httpGet: urlString do: aBlock<br>
        "GET the response from the given url"<br>
        "(WebClient httpGet: '<a href="http://www.squeak.org" rel="noreferrer" target="_blank">http://www.squeak.org</a>') content"<br>
<br>
+       | request errCount |<br>
-       | request |<br>
        self initializeFromUrl: urlString.<br>
        request := self requestWithUrl: urlString.<br>
        request method: 'GET'.<br>
        userAgent ifNotNil:[:ua | request headerAt: 'User-Agent' put: ua].<br>
        self contentDecoders ifNotNil: [:decoders | request headerAt: 'Accept-Encoding' put: decoders].<br>
+ <br>
+       errCount := 0. "Let's try resending to get around 'connection issues' trunk connections"<br>
+       [<br>
+               aBlock value: request.<br>
+               ^self sendRequest: request<br>
+       ] on: Error, NetworkError do: [:e| debugLog ifNotNil: [debugLog cr; nextPutAll: 'httpGet error: ', e; flush]. (errCount := errCount + 1) > 3 ifTrue: [e outer]. e retry].!<br>
-       aBlock value: request.<br>
-       ^self sendRequest: request<br>
- !<br>
<br>
<br>
</blockquote></div>