Persistent HTTP Requests in BSP: Can you Flush the Response without Ending It?

Hello all,
I have been looking for a way to implement a persistent HTTP Request in a BSP.  This means the server keeps the request open as long as possible and sends data periodically to the browser without closing the request.  In other development environments, there would be a way to flush the response to the client, separate from closing the connection, thus making this possible.  I have looked and do not see any way to do this.
Also, if it is not possible with a BSP, is there another way to do this via the Web Application Server?
Thanks for any help,
-Chris

There are various limits: the number of sockets / file descriptors that the operating system lets a program have open, the amount of socket buffer space in the operating system, the number of simultaneous connections that the web server allows. Each of these can be configured.
One problem is that a web server starts a thread for each hit. If you have 1000 simultaneous active hits you have 1000 threads. That is quite a lot. I've seen server OSes start buckling at around 400-500 threads. Given a suitable OS you may get higher with a bit of configuration, but I'd say the number of threads is rather a big concern. 100,000 threads? That dog don't hunt.
An alternative would be not to use a regular web server, but to use a NIO select -based server. Then you can have one thread that handles all the connections. I once did that to write a stock ticker applet. But if you want to do fully standards compliant HTTP implementation that's not trivial.
If you are writing the client applet as well as the server, consider using a simpler protocol than HTTP and writing a NIO server. NIO isn't quite trivial to get really right; look at examples and tutorials; google is your friend. If you can keep each client's connection open do so; establishing and tearing down hundreds or thousands of connections a second, and sending HTTP request and reply headers, is going to eat network and CPU resources.
If you are really targeting 100,000 clients at 5 seconds between messages, that comes to 20,000 messages per second. That's a lot; plan for a load balanced server cluster.

Similar Messages

  • Maybe dumb, but can you get the iphone without a calling plan?

    I am currently on a sprint employee plan because a relative works there. I only pay 20 bucks a month. Regardless of how bad I want an iphone, I can justify switching while only paying 20 bucks a month for unlimited data and 500 peak minute voice calls. I am on the instinct, which i am not a particular fan of due to how basic and elementry it is. The only nice thing about it is that I can connect to the internet on my computer wherever I am by using the phone as a modem. Oh, and i will say that the navigation features are great as well!
    On the other hand, the iphone is sick. I love the apps that it has to offer, and due to the fact that i get such a great deal on sprint, I was curious to know if the iphone can be purchased with only a data plan. I dont want the calling plan, just the data so taht i can use all of the apps. Is this possible? I was thinkin about an ipod touch, but i like the apps on the iphone that would require a 3g signal.

    It may be possible to cancel the unlimited data plan for the iPhone 3G and if so, you would also need to request that data access be disabled for your line/number or you will be charged by the KB for all data uploaded/downloaded via AT&T's data or internet network, which isn't cheap. You would also lose visual voicemail since visual voicemail messages are downloaded to the iPhone via AT&T's data or internet network only.
    The iPhone is designed to always have an internet connection as long as there is an available wi-fi network that you have access to, or you have cellular reception. If you don't use the iPhone as designed and intended, you might as well get a different phone - a phone that isn't in the smart phone category and isn't designed to always have an internet connection or access.

  • Can you run the computer without the monitor

    Can I remove the display and connect a monitor via the VGA output? My display is unusable and I would like it removed.

    I'd be concerned that, in disconnecting the display cabling, the "dead ends" of that many electrical paths would make the computer unusable. The safest action is to leave the display in place and go with an external monitor.
    What PowerBook to you have? Most that can run OS 10.5.8 have a DVI out and you need an adaptor like this:
    Apple DVI to VGA Display Adapter
    to drive a VGA monitor. That's the one I use on my 17-inch PowerBook when it's on an external display

  • Hi.. i am loocking for https wsdl file ..can you please provide any sample wsdl file .

    i am loocking for https wsdl file ..can you please provide any sample wsdl file

    Hello there,
    Can you please provide more details about your need regarding the WSDL file so we can know more precisely what do you want?
    Do you know anything about wsdlGenerator component? I don't know where or how exactly do you want to use the wsdl, but check it out. (Here is the documentation )
    Regards,
    Stefan
    oraclecloud

  • Can you reload the default HTTPS certificate for a Border Controller?

    The HTTPS page does not work for the Tandberg Border Controller (Q6.3). HTTP is fine. I believe that the customer uploaded their own certificate which has now “broken” the HTTPS page.
    So the question is – can you reload the default HTTPS certificate for a Border Controller?
    There’s a handy button to do this on the VCS but not on the BC it seems. The only option I can see is for the customer to generate a “working” certificate and upload it, is this the only option?
    Thanks,
    David

    Hi sherylz,
    It is also possible to edit the theme, but it may be wise to make a copy of it:
    *[https://support.mozilla.org/en-US/questions/940165]
    *[https://developer.mozilla.org/en-US/Add-ons/Themes/Background MDN Reference]
    *Add on to make own skin: [https://addons.mozilla.org/en-Us/firefox/addon/bt-canvas/]

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • I just noticed Private browing option, has this been downloaded or automatically added? I dont want my kids up to no good, as how can i check what they're looking at? Can you delete the private browser?

    Can you delete the private brower option

    That has been a feature in Firefox since Firefox 3.5 was released in June, 2009, it's not '''new'''.
    Sorry, that feature can't be "removed" without breaking a security part of Firefox, and the developers didn't provide a "switch" to allow parents to turn it off. What's even worse it that there is a Bug filed to disable Private Browsing when the Parental Control's that are built into Windows Vista and Windows 7 are turned on. Nothing has been done to fix that Bug in almost 2 years since that Bug was originally filed. <br />
    https://bugzilla.mozilla.org/show_bug.cgi?id=471658 <br />
    Hell, there hasn't even been a comment posted in that Bug in almost 7 months. I have done everything I can do as a support helper to make the developers aware of how important this Bug is for parents, based upon parental feedback here - that has been accepted as ''' "Thanks .... So it's on average 2 requests for this per week." '''
    In all honesty though, even if that Bug is fixed a child can just delete their browsing history in any browser quite easily; sure you'll see that it has been deleted, but you still won't know where they have been. You really need to install some Parental Controls on that PC that tracks the web sites that are being visited outside of a web browser, and can only be accessed with a password.
    I don't have any recommendations for that type of software, as I haven't needed it myself. Never had any children, and if I did even my grand-children would probably be old enough not to need monitoring like that.

  • Can you change the default image capture program in RH8?

    Can you change the default image capture program in RH8? I have used Snagit for sooo many years and I would like to use it by clicking the Caputre button.  I know how to change it to edit pictures with Snagit (Tools > Options > Associations), but not to capture.

    Looks like a feature request.
    Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Hello can you put the H series for sale ??  please thank you, hello can you put the H series for sale ??  please thank you

    hello can you put the H series for sale ??  please thank you, hello can you put the H series for sale ??  please thank you

    These are user-to-user forums, you are not talking to Apple here. I don't know what 'H series' is, but assuming that it's a TV series then you can try requesting it via this page, but ultimately it's the TV company that will have to provide it and grant Apple a license to sell it in your country : http://www.apple.com/feedback/itunes.html

  • HT4623 i was updating my i phone 4 to ios 7 , and this message appeared " This device isn't eligible for the requested build" , how can i solve the problem?

    i was updating my i phone 4 to ios 7 , and this message appeared " This device isn't eligible for the requested build" , how can i solve the problem?

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.
    Copied from this website.
    http://support.apple.com/kb/TS3694#error3194

  • How many times can you enter the wrong pin code on an iphone before it resets?

    How many times can you enter the wrong pin code on an iphone before it resets itself?

    Hey Robin.T,
    Thanks for the question. The following article provides the answer to your question:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212
    If you enter the wrong passcode six or more times, you'll see a message that says one of the following:
    iPhone is disabled
    iPad is disabled
    iPod touch is disabled
    You can also set your passcode lock to wipe the device after 10 unsuccessful attempts (Settings > General > Passcode Lock > Erase Data)
    Thanks,
    Matt M.

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for aflight.

    How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for aflight.

    You can check the file prefs.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and remove the line(s) related to that extension (procon.password).

  • How can you utilise the 30 pin VGA adapter used on the iPad 3 and iPhone 4S on the iPad 4 which uses a lightning connector?

    How can you utilise the 30 pin VGA adapter used on the iPad 3 and iPhone 4S on the iPad 4 which uses a lightning connector?

    See the following. Also take note below and from the linked page above that video mode is NOT supported:
    http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter
    *Note below and from the linked page above that video mode is NOT supported*
    "This adapter lets you connect devices with a Lightning connector to many of your 30-pin accessories.* Supports analog audio output, USB audio, as well as syncing and charging. Video output not supported."

  • Can you use the same charging cable for both an iPhone and an IPad or are they different?  When I use the charging cable for my iPhone on my Ipad, it doesn't charge.

    Can you use the same charging cable for both an iPhone and an IPad or are they different?  When I use the charging cable for my iPhone on my Ipad, it doesn't charge.

    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
     Cheers, Tom

Maybe you are looking for

  • Mini DVi to DVI D

    Which is the best route to go from my MacBook to my LCD TV (DVI D) I bought a mini Dvi to VGA Adaptor from Apple as I thought the TV was VGA (the Ebay ad said so anyway) but it turns out its a Dvi D. Is there a way to use my MiniDVi-VGA Adaptor or wi

  • Only one website loads, if another address is entered in the bar, Firefox doesn't respond at all.

    I am unable to access any site in Firefox bar one. the address bar shows a small square symbol in place of the Firefox icon next to the address when you hit the go button. There is no apparent response at all. Internet explorer is working fine throug

  • Suggest buffer cache size check

    Hi experts, please suggest how much give size of buffer cache. please tell me how to calculate this. Note: on database running huge select with where clause. > SQL> show sga Total System Global Area 536870912 bytes Fixed Size 1220408 bytes Variable S

  • How do i deactivate an application?

    I have multiple versions(years) of H&R Block Tax software running on my Macbook(2007 version). 2009 onwards. Any way of deactivating them before I install the 2014 software. Thanks

  • M2 aqua stuck on boot loop

    my xperia m2 aqua was stuck on the boot screen, the loading startup page. I repaired it with the PC companion and it was working fine for a couple of hours and again the same problem. it is again stuck to the starting loading screen. what can be done