[Bug 23723] New: Tube: no error when the application does not listen on the port declared by Offer()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Sep 5 01:15:21 CEST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=23723

           Summary: Tube: no error when the application does not listen on
                    the port declared by Offer()
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: telepathy-gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: alban.crequy at collabora.co.uk


If the Telepathy client calls StreamTube.Offer(Socket_Address_Type_IPv4,
("127.0.0.1", 6789), ...) but does not actually listen on the port 6789, the
tube does not work correctly.

Expected outcome:
The tube recipient should receives an error: the bytestream should be closed.

Actual outcome:
The bytestream stays open forever and the tube recipient does not know that the
data sent through the bytestream is not received by the application.

The last log on the recipient side is:
  "gabble_bytestream_socks5_send: send 164 bytes through bytestream"

The last log on the offerer side is:
  "target_got_connect_reply: reading has been blocked. Blocking now as the
socks5 negotiation is done"

The code is: src/tube-stream.c function new_connection_to_socket():
      gibber_tcp_transport_connect (GIBBER_TCP_TRANSPORT (transport), ip,
          port_str);

When this connection fails, no action is taken. We should close the bytestream
instead, so that the remote contact can have a feedback and not wait forever.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list