bugXMPP4R - Bugs: bug #14075, client.connect to a local server...

 
 
Show feedback again

bug #14075: client.connect to a local server fails, if DNS is unavailable

Submitted by:  None
Submitted on:  Thu 06 Aug 2009 01:16:14 AM UTC  
 
Category: NoneSeverity: 2 - Minor
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 06 Aug 2009 01:16:14 AM UTC, original submission:

When connecting to a XMPP server on the local machine, the lack of a DNS server causes a crash when client.connect is called with no arguements.

the stack trace looks like:
C:/Ruby/lib/ruby/1.8/resolv.rb:709:in `send': A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. - send(2) (Errno::ENOTCONN)
from C:/Ruby/lib/ruby/1.8/resolv.rb:709:in `send'
from C:/Ruby/lib/ruby/1.8/resolv.rb:596:in `request'
... snipped a few lines
from C:/Ruby/lib/ruby/1.8/resolv.rb:457:in `getresources'
from C:/Ruby/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:51:in `connect'
from C:/Ruby/lib/ruby/1.8/resolv.rb:380:in `open'
from C:/Ruby/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:47:in `connect'
from test_connect.rb:11

It's easy enough to work around by supplying an argument to connect.

But, I think it's worth fixing, since removing the DNS server from the equation, shouldn't cause a system that doesn't require one to break.

I've attached a possible patch to client.rb to this post.

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #6354:  client.patch added by None (1kB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 06 Aug 2009 01:16:14 AM UTCNoneAttached File-=>Added client.patch, #6354
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup