<div dir="ltr">It seems it get set to false every time NetNameResolver initializeNetwork is sent if the primitive NetNameResolver primHostNameSize does not fail.<div><br></div><div style>It should honor the preference, not the primitive.</div>
<div style><br></div><div style>Karl</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 18, 2012 at 6:10 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Dec 18, 2012 at 01:43:38PM +0000, Frank Shearar wrote:<br>
&gt; On 18 December 2012 01:58, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt; &gt; On Mon, Dec 17, 2012 at 01:15:12PM -0500, David T. Lewis wrote:<br>
&gt; &gt;&gt; On Mon, Dec 17, 2012 at 02:59:23PM +0000, Frank Shearar wrote:<br>
&gt; &gt;&gt; &gt; On 17 December 2012 14:12, David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt; &gt; &gt; Setting useOldNetwork to true will cause IPv6 support to be disabled. Too<br>
&gt; &gt;&gt; &gt; &gt; many double negatives I suppose ;)<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; That makes sense, but I&#39;m still confused, because both my little<br>
&gt; &gt;&gt; &gt; release script and ReleaseBuilder-fbs.85 set useOldNetwork to true.<br>
&gt; &gt;&gt; &gt;<br>
&gt; &gt;&gt; &gt; But NetNameResolver class &gt;&gt; #initiaize has &quot;Smalltalk<br>
&gt; &gt;&gt; &gt; addToStartUpList: self&quot;, so could actually set useOldNetwork BACK to<br>
&gt; &gt;&gt; &gt; false even though the image was saved with value true?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Yes that might be what is happening. And/or it may be that the preference<br>
&gt; &gt;&gt; needs to be initialized. I am away now but will try to have a look at it<br>
&gt; &gt;&gt; again later today.<br>
&gt; &gt;<br>
&gt; &gt; Frank, I really have to apologize - I gave you a bunch of wrong information.<br>
&gt; &gt;<br>
&gt; &gt; You were correct all along to do &quot;NetNameResolver enableIPv6: false&quot;. This<br>
&gt; &gt; sets the current value of the pragma preference for &quot;Enable IPv6 and new<br>
&gt; &gt; network support&quot;. So setting this to false in ReleaseBuilder is the right<br>
&gt; &gt; thing to do.<br>
&gt; &gt;<br>
&gt; &gt; Contrary to what I said earlier, setting &quot;NetNameResolver useOldNetwork: true&quot;<br>
&gt; &gt; does *not* disable IPv6 permanently. It is a temporary flag that will be<br>
&gt; &gt; reset at image startup time based on the setting of the enableIPv6 preference,<br>
&gt; &gt; and also based on whether the VM provides the new IPv6 primitives, which<br>
&gt; &gt; is checked at image startup time.<br>
&gt; &gt;<br>
&gt; &gt; I do not see anywhere that NetNameResolver class&gt;&gt;initialize would be<br>
&gt; &gt; sent in normal use, so I do not think that is the problem.<br>
&gt; &gt;<br>
&gt; &gt; Bottom line: If you can do &quot;NetNameResolver enableIPv6: false&quot; prior to<br>
&gt; &gt; saving the image, this *should* set the preference correctly and it *should*<br>
&gt; &gt; cause the image to be restarted in the correct state regardless of VM.<br>
&gt; &gt;<br>
&gt; &gt; I really apologize for the (my) confusion. Next time you publish the<br>
&gt; &gt; release candidate, please do the &quot;NetNameResolver enableIPv6: false&quot;<br>
&gt; &gt; exactly as you had originally intended, and let&#39;s see if it comes out<br>
&gt; &gt; right this time around.<br>
&gt;<br>
&gt; Thanks for everything, Dave. I&#39;ve released a new version at<br>
&gt; <a href="http://ftp.squeak.org/4.4/Squeak4.4-RC3.tgz" target="_blank">http://ftp.squeak.org/4.4/Squeak4.4-RC3.tgz</a> so let&#39;s see how that one<br>
&gt; works.<br>
<br>
</div></div>The preferences are set correctly now. But I took a quick look this morning<br>
and I think I saw a case where the useOldNetwork flag got set back to false,<br>
so I am afraid that there must be a bug in the initialization somewhere just<br>
as you and St?phane had suggested earlier. I can&#39;t see where the problem is<br>
happening, but something is not right. I&#39;ll try to take a better look at it<br>
later today or tomorrow.<br>
<br>
:-/<br>
<br>
Dave<br>
<br>
<br>
</blockquote></div><br></div>