HTTPService and requestTimeout connection issue.

I could really use some help with using the requestTimeout with HTTPService. I have successfully coded the timeout to 10 seconds and tested it with a long running http request. After 10 seconds the fault listener does execute properly. The trouble I have been observing is extreme delays when other HTTPServices starting and completing. There were major delays with them finishing their http request. At this point I fired up the fiddler web debugger. It appears that the http request does not disconnect after the timeout logic is called in actionscript. I have also tried the HTTPServices disconnect method in the fault listener. Does anyone have any suggestions? Thanks in advance. Here is my test  code: private var httpService:HTTPService = null; private function  TestTimeOut():void
httpService = new HTTPService();
httpService.url = "http://someurl";
httpService.method = "post";
httpService.resultFormat = "e4x";
httpService.requestTimeout = 10;
httpService.addEventListener(FaultEvent.FAULT, onFaultHttpService);
httpService.addEventListener(ResultEvent.RESULT,  onResultHttpService);
httpService.send();
} protected function onResultHttpService(e:ResultEvent):void
Alert.show("Success.");
} protected function onFaultHttpService(e:FaultEvent):void
httpService.disconnect();
Alert.show("Failed.");

I could really use some help with using the requestTimeout with HTTPService. I have successfully coded the timeout to 10 seconds and tested it with a long running http request. After 10 seconds the fault listener does execute properly. The trouble I have been observing is extreme delays when other HTTPServices starting and completing. There were major delays with them finishing their http request. At this point I fired up the fiddler web debugger. It appears that the http request does not disconnect after the timeout logic is called in actionscript. I have also tried the HTTPServices disconnect method in the fault listener. Does anyone have any suggestions? Thanks in advance. Here is my test  code: private var httpService:HTTPService = null; private function  TestTimeOut():void
httpService = new HTTPService();
httpService.url = "http://someurl";
httpService.method = "post";
httpService.resultFormat = "e4x";
httpService.requestTimeout = 10;
httpService.addEventListener(FaultEvent.FAULT, onFaultHttpService);
httpService.addEventListener(ResultEvent.RESULT,  onResultHttpService);
httpService.send();
} protected function onResultHttpService(e:ResultEvent):void
Alert.show("Success.");
} protected function onFaultHttpService(e:FaultEvent):void
httpService.disconnect();
Alert.show("Failed.");

Similar Messages

  • Database link and remote connection issues..

    We have a sql script... Large script that we would rather not post here. The script connects through a dblink to a remote site at the beginning and gets thousands of records. We then process these records locally which takes around 40 minutes. The link is unused for that time. Then the same script attempts to connect again through the dblink and set a confiirmation flag. But this final confirmation step routinely fails. The script used to work fine when the confirmation was at the beginning of the script.
    My understanding is that when you go out through a dblink it creates a session on the remote computer. The session stays active until the local proc ends or the session times out. Successive calls through the dblink from the same proc will reuse the same remote session? Is this true?
    So, Is the inactivity period possibly causing this dblink connectivity issue? We put some test sql select statements in the script here and there selecting from dual at the remote site to test the link inbetween major proc calls. Sometimes even these fail. What do I have to do to keep this link active? Is this even my issue?
    Like I said this script worked fine when the confirmation piece was at the beginning right before we start downloading files and basically no inactivity period... Now we download files and confirm at the end with a 40min to 2 hour inactivity between.
    The remote site as well as the network claim that they are not dropping us... The only piece of information I can provide is that on our side SQLNET.EXPIRE_TIME = 10 and on there side SQLNET.EXPIRE_TIME = 0. I've read that others solved this issue by manipulating this value.
    Here are some of the errror message we get in our script...
    ORA-03114: not connected to ORACLE
    ERROR at line 1:
    ORA-02068: following severe error from DMVAIS
    ORA-03135: connection lost contact
    Edited by: Mark Reichman on Nov 25, 2008 12:47 PM
    Edited by: Mark Reichman on Nov 25, 2008 12:57 PM

    What version of Oracle?
    What are the values of the following database parameters?
    open_links                       max # open links per session
    open_links_per_instance    # open links per instanceAny chance you are exhausting one or both these parameter values?
    Have you ran a check on the network connection between the two machines?
    HTH -- Mark D Powell --

  • Download and iTunes connection issues

    As of recently, I have purchased numerous audio and video files from the iTunes store with no difficulty or connection issues of any kind. Though today, I attempted to download the Iron Maiden: Flight 666 movie, and had issues with my download. Though the file is downloading, it is taking an excruciatingly long amount of time. A 3.09 Gigabyte file, a file which might have previously taken me about an hour to download on my connection, now displays an estimated download time of 17+ hours. It has been downloading now for at least an hour, and only 9.5 Megabytes have been successfully downloaded. Now, I am experiencing difficulty accessing the iTunes store at all. An error message continually pops up saying that my connection has been lost and the download pauses, though I have checked my connection time and time again. I have even contacted my internet provider, Comcast, in hopes of solving my problem. My connection is good, though iTunes itself is the only thing giving me difficulty. I have gone through all of the steps that Apple has recommended, and have not had any success in attempting to download the file. Any help would be greatly appreciated.

    Contact iTunes support.

  • BT Infinity and https connection issues

    I have sporadic issues with https connections on my BT Infinity service.
    I used to be on Virgin ADSL and had no issues.
    I can also use a Orange mobile dongle with no issues if I switch to that when experiencing problems with BT.
    Some example sites:
    Dixons checkout pages
    NatWest banking pages
    Anyone else experience this?
    Should I periodically reboot the HomeHub and VDSL?
    Cheers,
    Jason.

    Can someone on Infinity kindly do me a test and visit https://upgrades.o2.co.uk/index.htm and tell me if it's darn slow for you too?  It's not the site as I'm loading up VNC and connecting to a VPS in America and it's instantly loading. It'll definitely rule out traffic shaping if someone on Infinity can tell me either way.
    Thanks you generous souls!!!

  • WAP2000 and iPhone connectivity issues?

    I have several WAP2000 (Firmware 2.0.0.5), and while they work fine for PC's, iPhones, iPod touches cannot connect to them.
    Well, they connect briefly, get an IP address from the router, and immediately drop the connection to re-connect again.
    I have tried changing channels, eliminating all but one of the AP's, and so forth.
    Has anyone else had issues with this firmware?  I see posts where people are saying their iPhones connect up fine.  This happens on versions 3.x and 4.x of the iphone O.S.  It's not limited to one iphone or ipod touch; we've tried several.
    If anyone else is running 2.0.0.5 of the firmware and they are having success with an iphone, can you please tell me your settings?
    Thanks in advance!
    --Greg

    Greg,
    I think I have the same problem but with a Blackberry Storm 2.  (I posted in the last two days--Look for WAP2000 and Storm 2)  I see the Storm 2 connect successfully to the WAP2000 but then never establish a connection to the Blackberry Enterprise Server (BES)...Necessary to do anything useful with a Blackberry device.  A few months aga (Before I had my Storm 2) I had borrowed an iPhone for a week.  During that time I tried to use my WiFi but it never seemed to work (ie Established a WiFi link but then couldn't do anything else with it.).  Since I didn't have it long and WiFi wasn't the object of my testing I ignored the problem.  Now troubleshooting my Storm 2 problem and realizing that other WiFi devices on my network have been experiencing issues (the Storm 2 appears to have been most impacted) it is very likely that the iPhone I borrowed was experiencing the same problem.
    You can read my previous post but a quick summary--> When I used a packet analyzer (Wireshark) I saw that my router was issuing ARP address discovery broadcasts to the Storm 2's IP address but the Storm 2 was not responding.  I had tested the same setup with a different wireless access point (Linksys WAP54G) and saw the Storm 2 properly respond (and the Storm 2 worked perfectly when connected to the WAP54G).  I concluded that the WAP2000 was either not forwarding the ARP broadcast to the Storm 2 or it was not forwarding the Storm 2's response back to the LAN.
    I created a work around the now allows my Storm 2 (and multiple other devices) to function successfully on the network.  I have a Cisco ASA5505 firewall that has a ststic ARP table and is capable or proxy-arp (ie.  It can respond to ARP requests on behalf of devices on the network).  I simply created an entry for my Storm 2 and now it functions properly.  I also had a laptop and an IP security camera that had intermittent connectivity issues.  When I added static ARP entries for these items their problems disappeared as well.
    I don't think this is a settings issues so I am hoping Cisco confirms this as a bug and issues a firmware update.
    I hope this helps.
    --Gerhard Wittreich

  • FMS3 and FCS Connectivity Issue

    When FCS and FMS3 connection takes place, i get following
    error in FCS's Machine regarding the FCS crash.
    "Macromedia Flash Comminication Server MX 1.7.1 r98 has
    encountered a problem and needs to close. We are sorry for the
    inconvenience.
    Error signature
    szAppName : FlashCom.exe szAppVer : 1.7.1.98 szModName :
    js32.dll szModVer : 0.0.0.0 offset : 000033c1"

    This is just a guess as I'm not a Transall user. My first guess is that your DSN will need to be made using the 32-bit ODBC driver. As a default, using Windows 7 or later, you created a 64-bit source.
    To create or modify a 32-bit DSN on 64-bit Windows, you must run C:\WINDOWS\SysWOW64\odbcad32.exe. You may find it useful to create a shortcut to this on your desktop or Start menu if you access it frequently. I believe the interface is exactly the same after that.

  • Ipod Touch 5 random restart and wifi connectivity issues

    Good day to you sir...
    My Ipod Touch 5G 32gb model white has issues towards random restart and wifi unstable even though I have full bars and a working wifi internet connectivity
    Here are details that might help on my case..
    I bought the Itouch 5 on singapore exactly around January 2013 registered on January 1 on Apple web for warranty.
    Around early Feb, i experienced some random restart and I tought it was just some bug after update, it was gone and came back around late march with some wifi issues, but not regularly, only around certain cases on using it for a long period of time. I am still experiencing it now.
    The device never experienced drops,dents, nor water damage.. it is protected by an Ozaki case and screen protector bought in a Mac store. Never been Jailbraked. I used it for music, videos and gaming purpose. I have 3 idevice other than the Itouch (iPad 2, Ipad w/ retina display and Ipad Mini with no occuring problems both updated to ios 6.1.3 (so is the itouch). I would like to know what course of action should I take about this problem. I have restored the Ipod Touch 5G via iTunes but the problem still occuring both wifi and random restart. I bought the device on a legit mac authorized dealer. (Power Mac i think) in Singapore, but I live in General Santos City, Philippines. I would gretly appreciate if you give me exact details what course of action should i take.
    P.S. my Ipod Touch 5 is running on iOS 6.1.3..

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • Windows 7 and internet connection issue

    I am having a problem connecting to internet on Windows 7 OS. I have a Macbook that installed Windows 7 on Bootcamp. When I connect the DSL wire to my computer in dormitory it connects automatically. But when I go to somewhere else it doesn't connect. I also tried to connect using IP address which consists of 4-5 rows of numbers. Unfortunately, I cannot find the tab where I can enter these IP address numbers. So I was wondering if there is something wrong with my Network Driver (or may be it is missing some networking drivers).
    The main reason I want to connect to the Internet in Windows system is because I need to activate Keyshot (which requires internet connection and it works only on windows platform). My teacher said if the IP system is different on the Windows installed Macintosh, then it may not activate the product. So I was wondering if my Windows networking system works differently from Windows system on normal PC. If so how to fix this connection problem. Sorry if my question is too complicated.
    But again, I am able to connect on my windows at home. But this connection is still not allowing me to activate the software. As I understood, this program requires normal internet connection of Windows. I don't know what is wrong with my computer.

    Thanks for the direction. Did you mention the Bootcamp forum within this Apple.com or are you talking about a forum that exists outside of apple.com (maybe some website solely devoted to Bootcamp or windows issues)?

  • Windows 8 And Random Connectivity Issues

    Hello,
    I just relatively recently got a laptop with Windows 8 on it. I hadn't used Windows 8 before, but while some features are good, others are not. 
    Notably, when I put my computer to sleep and return from sleep, often times I need to unplug my ethernet cable or my pages won't 'load' because the network is unavailable. But my old laptop, with Windows 7, will be able to access the internet just fine and
    so it doesn't seem to be an ISP issue. 
    I thought it may be a Google Chrome issue, but IE and Firefox have similar issues, pages hang for a long time and eventually display 'page cannot be displayed' or some variant.
    As I said, sometimes if I unplug and re-plug my ethernet cable in, it resolves it, at least when I return from hibernation.
    Unfortunately, two or three times before, and now another time today, I'll be working on my computer and I'll go to a website and it will just hang, then if I try to reload or reload any other pages, I get a similar issue, the network isn't available. 
    I tried unplugging/replugging, I made sure the connection was fine by using my old laptop, and I even tried putting the computer to sleep and back, and closing Chrome and reloading, none of that worked. What did work was completely restarting, but this is
    inconvenient.
    I'm just wondering if anyone else has encountered these issues and if there are easier/more permanent fixes to them? They aren't /terrible/ but they are inconvenient and annoying.

    Hi,
    Have we tried the network troubleshooter?
    Open the Network troubleshooter by swiping in from the right edge of the screen, tapping
    Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking
    Search), entering network troubleshooter in the search box, tapping or clicking
    Settings, and then tapping or clicking Identify and repair network problems.
    For more information regarding wire and wireless problems in Windows 8/8.1, we may first take a look at the following tutorial:
    Wired and wireless network problems
    Best regards
    Michael Shao
    TechNet Community Support

  • CC 2014 Adobe suite and iCloud connection issue

    Ever since I bought the new iCloud and Abobe Creative suite, I've had issues. The apps were working up until now, but the iCloud connection never worked. It kept scrolling. I noticed that when I would shut down my computer and relaunch, it would launch all the programs I had open and create a scrolling issue. Mind you, I still use the old CS5 programs and I am mainly using the CC for Dreamweaver right now. I've been have to force quit things in start-up. So, I don't know if this has to do with the iCloud issue or not.
    The main thing that has happened today, is that my apps don't work now. It's telling that I need to change my firewall settings. Why now? Anyway, I'm frustrated for two reasons. I subject to working on things based on internet connection. This is why I keep my old apps. But, now I'm frustrated because of what is happening on start up and the fact that I can't my Dreamweaver app.
    I'm in the middle of a project. Any suggestions would be greatly appreciated.
    Lesley

    First, this is not Apple... it is Cloud, not iCloud
    Second, for download problems, please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • IMac and internet connection issue

    Dear Forum members,
    I have a number of iMac's. However on one of them when a try and connect to a certain site, I get "Safari can't connect to server" message. It also says safari can't open the page "http://www.somewebsite.com/" because Safari can't connect to the server "www.somewebsite.com".
    Please note www.somewebsite.com is just a made up name.
    When I googled around it seems to indicate a firewall is blocking this URL. So I did the following:
    Make sure OSX firewall is turned off - it always was.
    Tried to flush the cache by typing dscacheutil -flushcache but to no avail.
    Tried accessing using Firefox - same result
    Any suggestions on how I can fix this issue.
    I am running OSX Version 10.7.2, Safari 5.1.2
    Thanks
    Max

    Everyone I found the answer after I posted my own comment re localhost...got me thinking.
    I checked /etc/hosts file and in there was a loopback to localhost
    127.0.0.1     somewebsite.com
    WOW...how the heck did that get entered as I never edited this file??
    Now all works fine.
    Thanks everyone for your assistance.
    Here is a link to where I originally found the clue

  • Several PC and Mac connectivity issues with Airport Extreme Base Station

    Hello,
    This is not all necessarily airport base station related, but there is some crossover, so I'm posting all of these issues...
    Here is the laundry list of things that I can't make work in a home network that contains a PC w/ XP Home, MacBook 1.83 w/ 10.4.7, and Airport Extreme Base Station w/ Modem.
    1. Can't see the PC from the Mac.
    a. "Connect to server -> Browse" does not find the PC
    b. "ipconfig" on PC provides valid looking IP address
    c. ping from mac to PC IP address times out
    d. Firewall on XP is disabled via control panel
    b. Windows file and printer sharing is enabled
    2. Can't see mac from PC
    a. Windows file sharing enabled on mac
    b. Firewall on mac disabled
    c. I used \\MacIPAddr\shortusername
    d. ping times out
    3. Using dial-up to access internet, how do i tell airport to dial using PC?
    a. this feature is working fine from mac
    b. If already connected (via instruction from mac), can surf the internet fine from PC
    c. Is this even possible from the PC?
    4. Can't see printer connected to base station from PC
    a. See it fine from mac
    b. How do i "find" the printer on the PC?
    c. Is Bonjour required for this? (I don't have it on the PC yet)
    5. Can't see a "shared" printer on the PC from the mac
    a. printer is connected directly to PC
    b. Mac's add printer wizardry looks like it may "see" the printer, but then it asks for username and password for PC. This is XP home, with no usernames or passwords. Single user. Nothing seems to work in the credentials pop-up dialog.
    Any suggestions on any of these issues is very welcome.
    Thanks

    Is the PC running any kind of internet security or firewall software?
    1. Can't see the PC from the Mac.
    2. Can't see mac from PC
    Sharing files between an XP PC and a Mac running OS 10.4.x
    http://www.ifelix.co.uk/tech/3020.html
    3. Using dial-up to access internet, how do i tell
    airport to dial using PC?
    Jon Sevy has a Java Utility for this purpose.
    You will need Java in order to run the utility
    http://www.java.com
    4 . Can't see printer connected to base station from
    PC
    Printing from a Windows XP PC to a printer attached to an Airport Extreme Base Station or Airport Express
    http://www.ifelix.co.uk/tech/1004.html
    Printing from a Windows XP PC to a printer attached to an Airport Extreme Base Station or Airport Express using Bonjour
    http://www.ifelix.co.uk/tech/1008.html
    Problems with finding Printer Driver on Windows XP when using printer connected to Airport Extreme or Express
    http://www.ifelix.co.uk/tech/1012.html
    5. Can't see a "shared" printer on the PC from the
    mac
    Printing to a printer on a XP PC from a Mac running 10.4.x
    http://www.ifelix.co.uk/tech/3015.html
    Printing to a printer on a Mac running 10.4.x from a Windows PC using Bonjour for Windows
    http://www.ifelix.co.uk/tech/3014.html
    iFelix

  • Screen Painter and RFC connection issue

    Hello,
    I get the following error when I try to start screen painter:
    EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    I have installed all sapgui components and when I test the rfc connection it
    starts the program but then sends the same error.
    I think it's got something to do with the fact that I'm trying to start this
    program through a saprouter because when I start it locally (within my LAN)
    the program starts without problems.
    I have already applied latest kernel patch.
    Could you suggest what could I do to complete my RFC connection? Should I
    put something under gateway host or gateway service?
    Thanks in advance

    The issue here is that I don't know how to establish de gateway option
    considering I'm using saprouter to connect to sap system.
    Well... If you are asking how to "enable" gateway option then...
    You go to SM59 > Open EU_SCRP_WN32 > Go to "Technical Setting" tab
    Click on change option.
    Put the Gateway host IP address or Host name (SAP Server)  > Save
    Check the connection by "Connection Test" option.
    If any error... pls post here.

  • Oc4j and database connections issue (way too many created)

    I seem to be experiencing a serious issue every time someone connects to my application. New connections are made to the database instead of using existing connections (i.e. pooling doesn't seem to work). In my data-sources.xml, the pools are set to have a max-connections of 3, yet when I query the v$sessions view, there are additional sessions created every time the application is hit which has sent it way over the max-connections parameter in the data-sources.xml file. If oc4j is pooling the connections how can this happen? Is there any way of tracking where this is occurring or what could be causing this? (SQLNET.EXPIRE_TIME has been set, database is 10g, oc4j is 101202 and oc4j on linux platform)
    Thanks
    Paul

    Paul,
    According to the documentation for OC4J 10.1.2, if you use the value of the "ejb-location" attribute (from the "data-sources.xml" file) when doing a JNDI lookup of your datasource, then you should be using connection pooling.
    It's probably also an idea to not define a "pooled-location" attribute in your "data-sources.xml" file.
    Also, you can get database connection information via the "Spy" [Web] application. Use the following URL:
    http://oc4jHost:oc4jPort/dmsoc4j/Spy
    Of-course you need to replace "oc4jHost" and "oc4jPort" with the appropriate values. For example if you open your Web browser on the same machine that OC4J is running on, and if you are using the default port, then the URL will be:
    http://localhost:8888/dmsoc4j/Spy
    Good Luck,
    Avi.

  • Airport Extreme, PS3 and Netflix connectivity issue.

    Up until a few months ago my setup was working fine to stream Netflix over my PS3, now I am unable to stream netflix on my PS3 when connected to my Airport.  Before you jump to the conclusion that the PSN outage is the root cause of my current issues let me assure you that is not the case.
    1. I am connected via ethernet (not wirelessly, although that does not work either for the record).
    2. I have updated my PSN password and am able to connect and use other services (such as multiplayer games) successfully.
    3. I can use netflix on any of my other computers connected to the same Airport without issues (wired or wireless).
    When I connect the PS3 directly to my modem everything works fine, netflix connects and I can play anything I could before.  As soon as I connect my Airport between my modem and my PS3 the ability to use netflix disappears.
    I have attempted port forwarding (80 and 443).
    I have NAT Port Mapping enabled.
    I have tried setting the PS3 up with a static IP and enabled it as the default host (DMZ).
    I have tried connecting wirelessly.
    I have tried changing the MTU on the PS3 to 1492 (a suggestion from another forum).
    I have tried power cycling all the equipment.
    I have even tried resetting my Airport to factory defaults, all with no luck.
    Is anyone else experiencing this issue?  I have seen a few other threads from last year dealing with the Xbox360 but nothing current.  This is driving me crazy as we have been without netflix now for months.  Any help or suggestion that I have not tried???

    Welcome to the discussions!
    Is your Netgear a simple modem (it will have only one ethernet port) or is it a gateway (combination modem & router with 3-4 ethernet ports)?
    If your Netgear is a gateway, as I suspect, have you configured the AirPort Extreme as a "bridge" so that it will function correctly on the network?
    AirPort Utility > Manual Setup > Internet icon > Connection Sharing = Off (Bridge Mode)
    Might be a good idea to check your ethernet cable as well. It should connect from one of the LAN <-> ports on the Netgear gateway to the WAN (circle icon) port on the AirPort Extreme.
    Message was edited by: Bob Timmons

Maybe you are looking for

  • File Adapter: Run OS command unix after processing message

    Hi, in file adapter configuaration, after processing message, I've configured the channel that it has to call an unix script. The sintax in configuration is: sh /XS0/usr/sap/XS0/DVEBMGS01/work/TEST_FILE_XI/OUT/rename_lib_contabili.sh <variable>. I tr

  • Logic 7.2.3, Protools 7.1, Mac OS 10.4.6 & Universal Audio TDMs Pluggins

    Hello, I am doing an install later this week on G5 Quad Processor. Seems I need Logic 7.2.3 to work with the Quad, Prools 7.1 to work with the Quad and Mac OS 10.4.6 to work With Protools 7.1, problem is Universal Audio only supports it's TDM pluggin

  • Problems setting up wireless printing

    I can set up to print from my laptop with a USB connection to the printer. I want to be able to print when away from my desk, so have tried for 2 years, on and off, to get my printer to print wirelessly. I've probably spent 10+ hours trying to get th

  • How to rename a column name

    dear friends, Is there any other way to rename a column without creating another table with the requested colum name and dropping the eariler table after inserting the values from it.

  • Apps 11i Demo/Trial Version

    Hi.. Where can I find a demo/trial version for Apps 11i. I have checked the CD packs and trail softwares but it is not available there. Thanks.