Perl daemon script for message queue hanging for 20 seconds after each process. Why?
        Posted  
        
            by Mike Diena
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mike Diena
        
        
        
        Published on 2010-05-11T03:46:10Z
        Indexed on 
            2010/05/11
            3:54 UTC
        
        
        Read the original article
        Hit count: 276
        
I have daemon script written in Perl that checks a database tables for rows, pulls them in one by one, sends the contents via HTTP post to another service, then logs the result and repeats (only a single child). When there are rows present, the first one is posted and logged immediately, but every subsequent one is delayed for around 20 seconds. There are no sleep()'s running, and I can't find any other obvious delays. Any ideas?
© Stack Overflow or respective owner