Android java.net.SocketTimeoutException: Connection timed out

前端 未结 3 1743
礼貌的吻别
礼貌的吻别 2021-01-16 11:24

Recently I have encounter the following error in my program:

11-18 12:30:30.259: W/System.err(21368): java.net.SocketTimeoutException: Connection timed out
1         


        
3条回答
  •  旧巷少年郎
    2021-01-16 12:11

    There are two possibilities,

    1)have you checked and tested your connection.

    2)better don't set any connection timeout,if you are setting chose maximum time,,bcos it throws an error,if server didn't response within given time..

提交回复
热议问题