+void ForkBase::send_bfr(int fd, const void *bfr, int len)
+{
+ int ret = 0;
+ for( int retries=10; --retries>=0 && (ret=write(fd, bfr, len)) < 0; ) {
+ printf("send_bfr socket(%d) write error: %d/%d bytes\n%m\n", fd,ret,len);
+ usleep(100000);
+ }
+ if( ret < len )
+ printf("send_bfr socket(%d) write short: %d/%d bytes\n%m\n", fd,ret,len);
+}
+