<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Net_DNS2</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/20266" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/20266">
      <title>Net_DNS2: Bug 20266 [Open] Blocking UDP read MSG_WAITALL blocks forever with faulty DNS sercer</title>
      <link>http://pear.php.net/bugs/20266</link>
      <content:encoded><![CDATA[<pre>Net_DNS2 Bug
Reported by evyncke
2014-05-06T14:21:02+00:00
PHP: 5.4.6 OS: Ubuntu Package Version: 1.3.2

Description:
------------
In Sockets.php, in function read(), there is a call to socket_recv 
with MSG_WAITALL which causes problem when the DNS server 
sends back a shorter reply than expected.
In the test script below, the server is clearly badly behaving but 
there is no reason why my PHP script should wait forever ;-)
Thanks in advance

Test script:
---------------
&lt;?
    require_once('Net/DNS2.php');
    $res = new Net_DNS2_Resolver();
    $res-&gt;setServers(array(&quot;2001:d08:111:200::80&quot;)) ;
    $res-&gt;timeout = 2 ; // default is 5
    $res-&gt;recurse = FALSE ; // Do not ask for recursive
    try {
        $response = $res-&gt;query(&quot;klse.com.my&quot;, &quot;SOA&quot;) ;
    } catch(Net_DNS2_Exception $e) {
        print(&quot;No answer from DNS&quot;) ;                                                                                               
    }
    print(&quot;Got a reply&quot;) ;                                                                                                                                   
?&gt;

Expected result:
----------------
Throwing an exception with 'timeout'

Actual result:
--------------
Waiting forever hence blocking forever my script</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_DNS2 Bug
Reported by evyncke
2014-05-06T14:21:02+00:00
PHP: 5.4.6 OS: Ubuntu Package Version: 1.3.2

Description:
------------
In Sockets.php, in function read(), there is a call to socket_recv 
with MSG_WAITALL which causes problem when the DNS server 
sends back a shorter reply than expected.
In the test script below, the server is clearly badly behaving but 
there is no reason why my PHP script should wait forever ;-)
Thanks in advance

Test script:
---------------
&lt;?
    require_once('Net/DNS2.php');
    $res = new Net_DNS2_Resolver();
    $res-&gt;setServers(array(&quot;2001:d08:111:200::80&quot;)) ;
    $res-&gt;timeout = 2 ; // default is 5
    $res-&gt;recurse = FALSE ; // Do not ask for recursive
    try {
        $response = $res-&gt;query(&quot;klse.com.my&quot;, &quot;SOA&quot;) ;
    } catch(Net_DNS2_Exception $e) {
        print(&quot;No answer from DNS&quot;) ;                                                                                               
    }
    print(&quot;Got a reply&quot;) ;                                                                                                                                   
?&gt;

Expected result:
----------------
Throwing an exception with 'timeout'

Actual result:
--------------
Waiting forever hence blocking forever my script</pre>]]></description>
      <dc:date>2014-05-09T01:57:55+00:00</dc:date>
      <dc:creator>eric &amp;#x61;&amp;#116; vyncke &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>Net_DNS2 Bug</dc:subject>
    </item>
</rdf:RDF>
