Ticket #4107 (new defect)

Opened 6 weeks ago

Last modified 2 weeks ago

Connecting to GTalk freezes Gajim

Reported by: js Owned by: asterix
Priority: high Milestone:
Component: None Version:
Severity: major Keywords:
Cc: OS: All

Description (last modified by asterix) (diff)

When trying to connect to GTalk, Gajim freezes. Pressing ^C on the terminal stops the connection attemp and Gajim tries the next server the DNS lookup returned. I have to press ^C again until I aborted connection attemps to all returned servers until Gajim responds again.

Attachments

Change History

Changed 6 weeks ago by js

Trac fucked up when I wrote ^C . :(.

Changed 5 weeks ago by asterix

  • priority changed from highest to high
  • description modified (diff)
  • severity changed from blocker to major

gajim -l gajim=DEBUG gives some info? Here no problem to connect to gtalk

Changed 4 weeks ago by js

Network Manager support not available
2008-07-29 15:11:42,768 gajim.c.connection: DEBUG: Connection to next host
2008-07-29 15:11:42,768 gajim.c.connection: DEBUG: Connection to next type
2008-07-29 15:11:42,768 gajim.c.connection: INFO: Connecting to gmail.com: [talk.google.com:0]
2008-07-29 15:11:42,771 gajim.c.x.transports_nb: INFO: Found IPs: [(2, 1, 6, '', ('209.85.137.125', 0))]
2008-07-29 15:11:42,771 gajim.c.x.transports_nb: INFO: Trying to connect to 209.85.137.125:0

That's all I get. When pressing ^C:

^C2008-07-29 15:12:15,519 gajim.c.x.transports_nb: ERROR: Exception trying to connect to 209.85.137.125:
Traceback (most recent call last):
  File "/home/js/devel/gajim/src/common/xmpp/transports_nb.py", line 318, in connect
    self.connect_to_next_ip()
  File "/home/js/devel/gajim/src/common/xmpp/transports_nb.py", line 569, in connect_to_next_ip
    self._do_connect()
  File "/home/js/devel/gajim/src/common/xmpp/transports_nb.py", line 575, in _do_connect
    self._sock.connect(self._server)
  File "<string>", line 1, in connect
  File "./gajim.py", line 3235, in sigint_cb
    sys.exit(5)
SystemExit: 5
2008-07-29 15:12:15,521 gajim.c.connection: DEBUG: Connection to next type
2008-07-29 15:12:15,521 gajim.c.connection: INFO: Connecting to gmail.com: [talk.google.com:0]
2008-07-29 15:12:15,523 gajim.c.x.transports_nb: INFO: Found IPs: [(2, 1, 6, '', ('209.85.137.125', 0))]
2008-07-29 15:12:15,524 gajim.c.x.transports_nb: INFO: Trying to connect to 209.85.137.125:0

After pressing ^C several times until all servers are through:

2008-07-29 15:12:30,968 gajim.c.connection: DEBUG: Connection to next type
2008-07-29 15:12:30,968 gajim.c.connection: DEBUG: Connection to next host
2008-07-29 15:12:30,968 gajim.c.connection: DEBUG: Out of hosts, giving up connecting to gmail.com

When I was at someone elses place and the network cable wasn't plugged properly, I also had a freeze when connecting to my server. After waiting a long time, I got a could not connect and Gajim worked again. Maybe related? It seems like connecting to the server is blocking.

Changed 4 weeks ago by asterix

indeed it blocks in src/common/xmpp/transports_nb.py line 314, there is a FIXME ...

it's still the same problem that socket.getaddrinfo (DNS resolution) is blocker.

Changed 3 weeks ago by r000n

Seems I have similar problem with GMail. For me all connects, but in log line:

2008-08-10 09:41:00,184 gajim.c.x.transports_nb: ERROR: Connection to 209.85.137.125 lost: Unexpected EOF[-1]

Changed 3 weeks ago by js

Try connecting to port 5223, that somehow works for me oO.

Changed 2 weeks ago by asterix

  • milestone 0.12 deleted

please try with bosh branch, connect should be async there. But for 0.12 w can't do anything. Removing milestone

Add/Change #4107 (Connecting to GTalk freezes Gajim)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.