#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    194
    Rep Power
    14

    exceptions is taking too long to appear ont he screen


    hello,o
    i am throwin an UnknownHostException and its takign too liong to appear on the screen..any thought???

    Code:
    private void connect() {
            try {
                connected = false;
                in = InetAddress.getByName(requestedSmtpServer);
            } catch (UnknownHostException e) {
                System.out.println("COULD NOT FIND HOST... "); 
                System.exit(1);
    ..
    ..
    ..
    Web Development Studio | XML/ XSL/ PHP/ Flash/ Mysql | Digital Metamorphoses |
    http://www.dimensionstudio.biz
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    You're trying to do a reverse dns lookup, and those always take a (relatively) long time. Try pinging the server you're looking for and seeing how long it takes to come back with an ip address.

IMN logo majestic logo threadwatch logo seochat tools logo