[Mono-bugs] [Bug 555439] New: TcpClient fails when using 3G (but not always)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 13 14:20:00 EST 2009


           Summary: TcpClient fails when using 3G (but not always)
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: johnnynine at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=327494)
 --> (http://bugzilla.novell.com/attachment.cgi?id=327494)
Monotouch app used to test the issue

Description of Problem:

When using the TcpClient class to open a connection to a valid ip address or
valid domain name and port...

It always works:
a. In the simulator.
b. On the iPhone when using WiFi.

It usually fails:
a. On the iPhone when using 3G. Sometimes this works, but usually it throws an
exception very quickly. Different exceptions are thrown depending on if you are
using an ip address or a domain name.

The attached monotouch project is a very simple app that can be use to test the

Other iPhone applications are able to connect over 3G just fine, so I don't
think there is a 3G connectivity issue.

Steps to reproduce the problem:
1. Compile the attached project.
2. Upload the compiled app on the iPhone.
3. Test the app using WiFi and 3G.
4. You can just press the "Connect" button to connect to a yahoo web server.
5. To see the different exceptions you will need to change the hostname to an
ip address and retest.

Actual Results:
When using 3G the TcpClient will usually immediately throw a SocketException.

a. If the address is a valid domain name such as "yahoo.com" you will get this
exception message: No host is known.

b. If the address is a valid ip address you will get this exception message: No
route to host.

Expected Results:
I would expect the TcpClient to work the same with WiFi and 3G.

How often does this happen? 
It's weird that sometimes a connection will be made, but usually it fails to
connect over 3G.

Additional Information:
My application needs to work reliably over a 3G network so this is a show
stopper for me right now.

Also I should point out that when I use other application such as ping or a web
browser or telnet on the iPhone they are working so there does not appear to me
issues with 3G in other apps at the same time.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list