<html><head><style type="text/css" media="screen">Body{font-family: Verdana;font-size:.75em;}h4{font-size:.9em;}a{color: #3a62a6;}.digest .toc {margin-bottom: 15px; padding-bottom:8px; border-bottom: 1px solid #ccc;}.digest .tocItem {margin-bottom: 15px;}.tocItem a{color:#000;text-decoration: none;}.tocItem a:hover{color: #3a62a6;text-decoration: underline;}.topic{padding-bottom: 8px;margin-bottom: 20px; border-bottom: 1px solid #ccc;}.topicHeader{margin-bottom:10px;}.topicTitle{font-weight: bold;}.replies p{margin:0;padding:0;}.replies hr{width: 15%;text-align: left;margin: 0 auto 5px 0;border: none 0;border-top: 1px solid #ccc;height: 1px;}.reply{margin-bottom: 6px;padding-bottom: 4px;}.anchorMarker{color: #3a62a6;}.footer{color: gray;}</style></head><body><div class="digest"><p>Hi ironpython,</p><p>Here's your Daily Digest of new issues for project "<a href="http://ironpython.codeplex.com/">IronPython</a>".</p><p>In today's digest:</p><h4>ISSUES</h4><div class="toc"><div class="tocItem"><a href="#toc_issue_1">1. <span class="tocTitle">[New issue] Sockets are not properly closed</span> <span class="anchorMarker">↓</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New issue] AssemblyResolve event in PythonContext may load unnecessary assemblies</span> <span class="anchorMarker">↓</span></a></div></div><h4>ISSUES</h4><div class="topic"><a name="toc_issue_1"></a><div class="topicHeader"><span class="topicTitle">1. [New issue] Sockets are not properly closed</span> <a href="http://ironpython.codeplex.com/workitem/33312">view online</a></div><p>User vahalae has proposed the issue:</p><p>"In IronPython 2.7.3, calling close on the socket does not close the socket but only decreases the reference count: PythonSocket-class initializes the internal _referenceCount to 1. When close is explicitly called, reference count condition for closing the socket is _referenceCount &lt; 1. Calling close only decreases the reference count. The socket is only really closed when the finalizer calls _close.<br /><br />The correct close condition is: <br />            public void close() {<br />                var refs = System.Threading.Interlocked.Decrement(ref _referenceCount);<br /><br />                // Don't actually close the socket if other file objects are<br />                // still referring to this socket.                <br />                if (refs &lt; 1) {<br />                    _close();<br />                }<br />            }<br /><br />A simple script for reproducing the defect is attached."</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New issue] AssemblyResolve event in PythonContext may load unnecessary assemblies</span> <a href="http://ironpython.codeplex.com/workitem/33313">view online</a></div><p>User eldan has proposed the issue:</p><p>"I've noticed in my program that this event jumps every time I refer to any of my resources for all of my projects. For an example every time I open a form in my program where the form uses something from the project's resources this event jumps.<br />In MSDN it states here: http://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve.aspx<br />that now in .NET 4 this event triggers also for resource assemblies.<br />I was wondering if I could make a patch in the code that check if args.Name.contains(&quot;resources&quot;) return null<br />it'll make my program faster, but would it break anything?<br />I was thinking that maybe when PythonContext.cs was written IronPython was running under .NET 3.5 so it was never intended to work for resource assemblies.<br />This could be very great for you too, since making this patch made all my forms open 1-1.5 seconds faster.<br /><br />please get back to me,<br />thanks in advance!"</p></div><div class="footer"><p>You are receiving this email because you subscribed to notifications on CodePlex.</p><p>To report a bug, request a feature, or add a comment, visit <a href="http://ironpython.codeplex.com/workitem/list/basic">IronPython Issue Tracker</a>. You can <a href="https://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>