Changeset 129:1636d0d38280 in roaraudio


Ignore:
Timestamp:
07/13/08 19:55:29 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a bit better monetoring client support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r127 r129  
    545545  return 0; 
    546546 
     547 if ( errno == EAGAIN ) { 
     548  // ok, the client blocks for a moment, we try to sleep a bit an retry in the hope not to 
     549  // make any gapes in any output because of this 
     550 
     551  usleep(100); // 0.1ms 
     552 
     553  if ( write(fh, g_output_buffer, g_output_buffer_len) == g_output_buffer_len ) 
     554   return 0; 
     555 } 
     556 
    547557 // ug... error... delete stream! 
    548558 
Note: See TracChangeset for help on using the changeset viewer.