Buffered IO / networking delay

I'm trying to test a program to see how it will work on slow networks by creating custom IO streams that put like a 3 millisecond delay before performing the basic int read() or void write(int b).
This works normally and helps me find problem areas, but if I use buffered streams it will sometimes hang. If I just take out the stream with the delays, it works fine.
Can someone tell me why delays would cause the buffered streams to hang when used over the network?

Looking at it further, if I close the stream all the data seems to get there. But just calling flush does not help.

Similar Messages

  • Jittery display due to network delay for streamType=live

    Hi,
    We are using OSMF(Strobe Media Player) that becomes jittery as the network delay between the player and the publisher of the livestream increases. A Red5 media server publishes the RTMP stream produced by an ffmpeg instance to the player.
    When the player and Red5 are in the same room, the video display is smooth; when the client is in a different room (same building), the video either displays faster or it freezes and when it recovers, it displays faster than normal.
    We believe this is due to our inappropriate values for our player settings.
    Our settings are as follows:
    bufferTime=0
    initialBuffer= 0
    expandedBuffer=0
    optimizedBuffering =false
    When buffering is inactive, the display becomes faster than normal.
    When we allow buffering, the display keeps on freezing and then displays faster when it recovers.
    Any and all suggestions are much appreciated.
    -- Sumita

    Hi,
    You should be able to find the default parameter values in setup.html.
    For live, it is liveBufferTime or liveDynamicStreamingBufferTime, depending on the type of your asset.
    My suggestion is to start from 4-10 seconds and tweak from there.
    S.

  • Estimating the network delay time of the redo transfer - DataGuard

    Hi
    I have 10.2.0.4 Dataguard setup on a a Solaris server in LA where the primary is in NYC
    I am operating with real time redo apply, no delay
    I want a way to estimate the network delay of the redo transfer between LA and NYC.
    the v$recovery_progress will give me the active apply time which is the apply itsef ( fast)
    but my bottleneck is our network .
    Is there an easy way to determine the network delay time ?
    thanks
    Orna

    Is "transport lag" in v$dataguard_stats any help to you?
    NAME                             VALUE            UNIT                           TIME_COMPUTED
    apply finish time                +00 00:00:00.0   day(2) to second(1) interval   25-JUN-2009 16:41:41
    apply lag                        +00 00:00:00     day(2) to second(0) interval   25-JUN-2009 16:41:41
    estimated startup time           9                second                         25-JUN-2009 16:41:41
    standby has been open            N                                               25-JUN-2009 16:41:41
    transport lag                    +00 00:00:00     day(2) to second(0) interval   25-JUN-2009 16:41:41Edited by: user600286 on 25-Jun-2009 08:52

  • Networking Delay Causing Mayhem

    First, I know that others have reported networking issues in Leopard. I wanted to start a new topic with my specific issue and see if others are having the same problem.
    When accessing a website, sometimes there is a delay of about 10 seconds. Think "Contacting google.com" in Safari. This does not happen when in Windows XP. I am connecting to the Internet through a Netgear GS105 Gigabit Switch to a Linksys WRT350N Router to my Cable Modem.
    I did a bit of tinkering in Terminal and found the same behavior when doing "ping google.com". There is a delay of about 10 seconds--sometimes--until I start seeing pings. This ring a few bells for anyone out there?

    I fixed my problem! I had to remove the Active Directory stuff from Directory Utility. This has totally eliminated the problem. I hope Apple fixes this as I would like to continue to use AD on this system. At least, I have an interim solution. Hope this helps someone else out there...

  • Network Delay while placing image(PDF File)

    Hi
    i am using following code for placing PDFs and Texts in single text Frame.
    if the PDF is in local folder then place works perfectly as desired, if the PDF path is a network path , then a overlap is happening .
    i'm inserting the text and pdf in this sequence,
    place PDF,
    place text1,
    place text2,
    place text3,
    place PDF,
    place text1,
    place text2,
    place text3,
    place PDF,
    place text1,
    place text2,
    place text3,
    place PDF,
    place text1,
    place text2,
    place text3,
    and so on.
    at 3rd,4th insertion the overlap is happen.
    actual order after placing all the texts and PDF is like this
    place PDF,
    place text1,
    place text2,
    place text3,
    place PDF,
    place text1,
    place text2,
    place PDF,
    place text3,
    place text1,
    place text2,
    place PDF,
    place text3,
    place text1,
    place text2,
    place PDF,
    place text3,
    is there any possibility, to tell system to wait(sleep will cause more delay) until the it places the content and then move for the next text content.
    or
    is it possible to load the pdf to links and then place pdf from the link?
    sample code:
    var tframe = app.documents[0].pages[0].textFrames.add ();
    tframe.geometricBounds = [0,0,"150mm","150mm"];
    var myfile= "C:\\Karthik\\Ellipse.pdf";
    //inline.anchoredObjectSettings.anchoredPosition = AnchorPosition.aboveLine;
    for(i=0;i<10;i++)
    // some network path
    myfile= "\\xyz server\\Ellipse.pdf";
                    if (i==0)
                                    var inline =tframe.insertionPoints[0].place (myfile)[0].parent;
                    else
                    tframe.insertionPoints[-1].place (myfile)[0].parent;
                    tframe.insertionPoints[-1].contents = "\rSample text\rMore sample text\r";

    is there any possibility, to tell system to wait(sleep will cause more delay) until the it places the content and then move for the next text content.
    or
    is it possible to load the pdf to links and then place pdf from the link?
    sample code:
    You can make the system sleep by calling $.sleep() like this:
    $.sleep(milliseconds)
    I doubt it will solve your problem, though, because the commands will run in the sequence you program it.
    The content might be misplaced because your textframe overflows. Try targeting the story instead when placing.
    tframe.parentStory.insertionPoints[-1].place(myfile)
    Does that make any difference?

  • Reg: HTTP and RTMP when these are in Network Delays

    Video streaming in HTTP and RTMP, which one performs better when delays are introduced. Streaming from one PC to other PC through LAN. Here i introdced delays in both HTTP and RTMP streaming. So, far i have seen RTMP is quite good in low delay variations such as -+10ms. Here Qn is which is better when high delays are introduced.
    Thanks in Advance,
    sree7k7

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Do you have any ad-blocking extensions or (security) software?

  • Networks delay releasing v20 for n95

    does anyone know of a network that has released v20 for n95 ?
    Do not! hack your phone its very very bad

    does anyone know of a network that has released v20 for n95 ?
    Do not! hack your phone its very very bad

  • Network Delay is not specified! Defaulting to 0x384

    Since upgrading my 2012 Mac mini to Mavericks, I get this on startup (verbose boot, console logs), as well as at random during the day. Is there any way to put an end to this? It's not harmful as far as i know, but it'd be nice to not see this anymore.
    Thanks in advance!

    If no change...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed. Or an errant process eating up RAM.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Fms4.5 http  broadcast delay is too long

    HTTP broadcast delay is too long, I do a test in the LAN, send video using FME 3.2 the flow FMS4.5 server, use the sample folder under the videoplayer to play live video streams, using HTTP delay of 10 seconds or more,(RMTP play live rarely delay), who can tell me, how can I do this problem can solve the delay!

    It depend on two things: streams buffering and network speed

  • Slow network printing on Windows 2008 Server

    Hi,
    We are just testing/configuring a Windows 2008 (x64) server to replace an aging Windows 2000 file & print server.
    I have added the print services role and added a network TCP/IP printer (a HP Laserjet 2200).
    When I print to this printer from either the server (via print test page) or from a client, it takes around 30 seconds before the print will start to print. On our Windows 2000 server, this would print immediately.
    I have insalled the HP 2200 driver that came with Windows 2008.
    Anyone any ideas where to find the problem causing the delay?
    Thanks,
    Kenny

    Hello,
    I have done some research and I find firewall component of the antivirus software such as Mcafee might cause similar network delay issues.
    If you have installed AV softwares on Windows Server 2008, please try uninstalling it temperately and test whether this will make any difference.
    Moreover, You could also try disabling TCP Chimney Offload, RSS, Receive Window Auto-Tuning Level on Windows Server 2008 one by one to see whether it makes any difference.
    To disable TCP Chimney Offload, follow these steps:
    a.   Use administrative credentials to open a command prompt.
    b.   At the command prompt, type the following command, and then press ENTER:
           netsh int tcp set global chimney=disabled
    To disable RSS, follow these steps:
    a.   Use administrative credentials to open a command prompt.
    b.   At the command prompt, type the following command, and then press ENTER:
           netsh int tcp set global RSS=disabled
    To disable 'Receive Window Auto-Tuning Level', follow these steps: :
    a.   Use administrative credentials to open a command prompt.
    b.   At the command prompt, type the following command, and then press ENTER:
           netsh interface tcp set global autotuninglevel=disabled
    I hope this helps. Thanks.
    Regards,
    Neo Zhu

  • Cannot get mac and PC to network

    Hi,
    I just can't seem to get my mac and pc to network!
    - I have activated SMB via file sharing on my iMac
    - I have created a folder on my PC that I want to share on my network
    - I can see the PC on the source list in finder on my iMac
    However,
    - I cannot connect to the PC via the finder or via Go>Connect Server. When I try to do this I get the following error message: "The Finder cannot complete the operation because some data in "smb://xxx.xxx.x.xxx" could not be read or written. (Error code -36)"
    - I cannot see the iMac on my PC.
    I have searched the forum high and low but I am yet to find a solution that works for me.
    Anyone else in the same situation..?
    Any ideas on how to deal with this would greatly appreciated.
    Thanks!
    - Lalli
    Message was edited by: Lalli

    I was going to start a new topic, but since this is here, I will add to it.
    I have a home network with 2 Macs that were recently upgraded to leopard (I like to wait), a PC running Windows 2000, a PC running Windows XP, and 2 PC's running Vista. With Tiger, I had no problems whatsoever in finding the various machines and logging into them. It was always immediate and seamless.
    After upgrading the 2 Macs to leopard 2 weeks ago, the network is intermittent. No changes were made anywhere, other than the upgrade. Network settings on the Macs were verified and are set properly. When I boot up either machine, and open Finder to get on any of the PC's, all that shows up is the other Mac. None of the PC's are visible at first. But over the next 3 to 4 hours, the PC's on the network slowly appear.
    To me, this is a serious bug that must be addressed by Apple. I see many other people having the same problem, and for people that work on Macs and PC's together, there is a huge impact on productivity due to this network delay.
    Has anyone found a fix or a way around this problem? I ask here as Apple is notorious for lack of support and has never responded to a single support query of mine.
    Thank you in advance for any help.
    -- Danny

  • How to track network speeds - maybe through SQL or open to others

    The network speed is dramatically slower to the SAN, but it also makes me wonder how slow things are between the Webserver and the external world.
    What's the best way to monitor what-I-assume are network delays and which part of the networks are causing the problem.
    -- Needs to be run on the VM Machine xxxx to work
    /* Local backup */
    BACKUP DATABASE [play_pen] TO
    DISK = N'x:xxxx\testbackup.bak' WITH COPY_ONLY, FORMAT, INIT,
    NAME = N'Speed backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10, CHECKSUM, CONTINUE_AFTER_ERROR
    -- BACKUP DATABASE successfully processed 35289 pages in 7.638 seconds (36.095 MB/sec).
    /* Intra-Network backup*/
    BACKUP DATABASE [play_pen] TO
    DISK = N'\\xxxx\testbackup.bak' WITH COPY_ONLY, FORMAT, INIT,
    NAME = N'Speed backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10, CHECKSUM, CONTINUE_AFTER_ERROR
    -- BACKUP DATABASE successfully processed 35289 pages in 14.152 seconds (19.480 MB/sec).
    /* SAN backup*/
    BACKUP DATABASE [play_pen] TO
    DISK = N'\\xxxx\testbackup.bak' WITH COPY_ONLY, FORMAT, INIT,
    NAME = N'Speed backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10, CHECKSUM, CONTINUE_AFTER_ERROR
    -- BACKUP DATABASE successfully processed 35289 pages in 55.106 seconds (5.002 MB/sec)

    Hi,
    You can use the tools like Resource Monitor and Network Monitor.
    Resource Monitor is a tool that you can use to monitor the usage of CPU, hard disk, network, and memory in real time. You can open it by clicking the
    Start button. In the search box, type Resource Monitor, and then, in the list of results, click
    Resource Monitor.  If you're prompted for an administrator password or confirmation, type the password or provide confirmation.‌
    Meanwhile, I think it is proper to dig the networking issue on the Windows Server forum via the below link.
    http://social.technet.microsoft.com/Forums/en-US/home?forum=winservergen
    Additional information:
    Using Network trace to troubleshoot intermittent connectivity issues
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/06/18/using-network-trace-to-troubleshoot-intermittent-connectivity-issues.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Word 2010 - Network is Busy. Try again later shows randomly when opening Word document

    Hi All,
    Here's my dilemma, I have a single user who when they attempt to open a word/excel document get the error message, "Network Busy. Try again later". The file is opend from the Network via Samba but this does not happen all the time but randomly,
    and this is the only user who is experiencing this behaviour, which is leading me to believe it is their PC/office. There doesn't appear to be any performance issue on the PC or network delays to cause this. I haven't found any workable suggestions, so help
    would be grateful.
    Thanks,
    D

    Hi,
    First, make sure that Office and Windows are completely up-to-date. Does this issue exist when document is saved to local disk?
    I find a similar issue like your question and post it here. You can follow suggestion to check if it’s helpful.
    http://www.experts-exchange.com/Software/Server_Software/Q_25071647.html
    Here is some useful information:
    “Worth a try, but unless there is something wrong with the AD server, or the file server is having problems with AD connection issues (both of which would cause more serious errors), that is not likely the issue.
    To explain: the AD server issues a "ticket" to the file server and the client... the "ticket" has an expiration date (usually 24-hours) which is the maximum "duration" of that TCP connection. If the TCP connection is lost, a
    new ticket is supposed to be obtained. So, with a mapped drive, the connection remains open and the "ticket" is allowed to expire, at which point the client is supposed to automatically re-connect -- thus, getting another 24-hour ticket.
    Now I am assuming that you restarted the client system after changing the registry value.... that setting is read during network startup, so just changing it would have had no effect until restarted.”
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Buffered Downloading of a File using a URL

    Hi All,
    I have been trying to download a file (online - using URL) using the Data Socket Read. But on downloading the file (Minimum Size: 250 MB) the labview memory gets built up i.e I will have to wait till all the packets pertaining to that file are received by the client. I tried using buffered read in Data Socket Open, so that i would to able to obtain instantaneous packets received. But still the memory builds up during the download process. Can anyone please suggest me a solution so that i would be able to obtain the packets as and when they are received by the client instead of waiting for the entire file to be received by the client ?
    The data downloaded will be in unformatted text and i have attached the VI for reference. Thanks in advance.
    Regards,
    S.P.Prasaanth

    If you are keeping the file in memory as you are downloading it then it will of course use lots of memory (essentially an array of bytes). I think the key thing here is to periodically flush the chunks data received to disk.
    I don't know if this is possible using the DataSocket functions (it maybe buffers the network data, not the file part?) but it should be possible using the raw TCP/IP functions or perhaps even a .NET library (HttpWebRequest?).
    Edit: On looking at your VI, I can't see any obvious cause for the whole file to be in memory unless it's something relating to how DataSockets are implemented internally. In which case - my point still stands that you could try the .NET library or doing the http by raw TCP/IP.

  • Applescript to start a private network

    Hi all,
    I'm just wondering if an applescript could be able to create setup and start a private network.
    Thanks!

    I just need to simulate the "create network" in "System Preferences>Network>Network Name".
    Then just press create!
    Then you might want to try this:
    tell application "System Preferences"
        activate
        reveal pane id "com.apple.preference.network"
        tell application "System Events" to tell process "System Preferences"
            delay 0.1
            click pop up button "Network Name:" of group 1 of window "Network"
            delay 0.1
            key code 121 -- to select the last menu item
            keystroke return
            delay 0.1
            keystroke return
        end tell
    end tell
    The three “delay 0.1” statements are just for caution and might possibly be removed.
    Message was edited by: Pierre L.

Maybe you are looking for

  • Disk Permissions Log Entries

    I was having trouble with Finder... very, very slow pull-down menus were black, unreadable, except for the selected one, which was blue-on-black. ...that was fixed with a Restart, but then I decided to run Repair Permissions. The entries were few, bu

  • Logical data base and work process

    I have some questions on the above topics. if some have an answer, let me know . 1. How many logical data bases can we use in our report program 2.  How to design our own selection screen when using logical database 3. How mnay update workprocesses c

  • Problems exporting

    I'm relatively inexperienced with FW so I hope this makes sense in the translation. I have a png file of a 2-column web page layout consisting of a gray border around each and white background. When I export as is, the slices export as they are suppo

  • How to configure Safari to connect to the Internet via the TOR Network for anonymization ?

    I'm used to use Vidalia/TOR combined with Firefox and the Add-On Torbutton on a Windows PC, which works well, but now i want to "torify" my PowerMac, too...

  • DCR-DVD508 mounts in Finder as blank DVD

    I am trying to transfer video from a Sony DCR-DVD508 to my iMac using iMovie '09. I connect the two devices using a USB cable. The camcorder stores the video on an 8 cm DVD. When I connect the camcorder to the iMac, the camcorder mounts in Finder as