Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Slow XML Response

    I am having a really slow XML response. I get the responses, but they are VERY slow. Sometimes up to 5 minutes before I get the response back.

    I have lots of callback methods from the server because I am trying to make Battleship.. my updateRequestCallback() I get responses instantaneously, however, my fireRequestCallback() is slow and so is my placeShipCallback()

    In my placeShipCallback() I use an if(xmlhttp.status == 200){ //doo all code..} else{console.log("servers down");}

    when my callback method is called, I get no console print.. I just have to sit there and wait for the server to respond. This is a huge flaw in my game because I can still move my ship and that's bad =/

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    We don't have near enough information to help you yet.

    • What languages are you writing your code in?
    • Can you show us your code?
    • What infrastructure is your code running on top of?
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for your concern! However, I found out I had an extra setInterval timer running alongside another timer. It was a stupid mistake, but now the ships register instantly! Thank goodness.

    I was using javascript and a little bit of AJAX and XML.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •