#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171

    Telnet connects and then :"Connection closed by foreign host"


    Hi I have 2 quesitons:


    1 - When I telnet www.site.com 80, why sometimes I get this: "Connection closed by foreign host".

    2 - Why do I have only some headers in the response? Looks like based on the host I receive different header data by the resver.

    Thank you and pay your bills on time
  2. #2
  3. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400


    1. Depends what you do after you connect. Depends how quickly you do it.
    2. Depends what you sent, depends on the server, depends on the requested resource.

    Comments on this post

    • kicken agrees : Love it!
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171
    Originally Posted by requinix
    1. Depends what you do after you connect. Depends how quickly you do it.
    1 - telnet www.site.com 80
    2 - Connects
    3 - 2 seconds later closes it.
  6. #4
  7. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400

    It waited for you, Tea. Apache waited. For two whole seconds.

    When you telnet to port 80 you're starting an HTTP transaction. You didn't hold up your end of the bargain by requesting a resource from whatever was listening (Apache) so it decided to close the connection after a couple seconds.
  8. #5
  9. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171
    Originally Posted by requinix
    It waited for you, Tea. Apache waited. For two whole seconds.

    When you telnet to port 80 you're starting an HTTP transaction. You didn't hold up your end of the bargain by requesting a resource from whatever was listening (Apache) so it decided to close the connection after a couple seconds.
    About telnet, the reason I asked is that it's not the same when I telnet other domain names and IPs. It doesn disconnect like that. it only happens for this site.




    --------------------------------------------------------------
    What is it with you and pictures today? Are you a mod with questionable qualities?
  10. #6
  11. Jealous Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,303
    Rep Power
    9400
    I just felt like using pictures. You set up me - twice - and I couldn't resist.

    Your Apache is configured to wait for two seconds. Which is fine. I believe it's configured by TimeOut? Other servers have longer timeouts.
  12. #7
  13. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,689
    Rep Power
    171
    Originally Posted by requinix
    I just felt like using pictures. You set up me - twice - and I couldn't resist.
    Hey I was kidding, you are absolutely awesome and we love you.
    Originally Posted by requinix
    Your Apache is configured to wait for two seconds. Which is fine. I believe it's configured by TimeOut? Other servers have longer timeouts.
    Thank you

IMN logo majestic logo threadwatch logo seochat tools logo