~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/net_serv.c

Merging Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
*/
45
45
 
46
46
 
47
 
#define update_statistics(A)
48
 
#define thd_increment_bytes_sent(N)
49
 
 
50
 
#define TEST_BLOCKING        8
51
47
#define MAX_PACKET_LENGTH (256L*256L*256L-1)
52
 
#define MIN_COMPRESS_LENGTH             50      /* Don't compress small bl. */
53
48
 
54
49
static bool net_write_buff(NET *net, const unsigned char *packet, uint32_t len);
55
50
 
593
588
      break;
594
589
    }
595
590
    pos+=length;
596
 
    update_statistics(thd_increment_bytes_sent(length));
597
591
  }
598
592
end:
599
593
  if ((net->compress) && (packet != NULL))
696
690
      }
697
691
      remain -= (uint32_t) length;
698
692
      pos+= length;
699
 
      update_statistics(thd_increment_bytes_received(length));
700
693
    }
701
694
    if (i == 0)
702
695
    {                    /* First parts is packet length */