s3:rpc_client: don't randomly fragment rpc pdu's in developer mode
authorStefan Metzmacher <metze@samba.org>
Sun, 20 Sep 2009 21:29:11 +0000 (23:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 25 Sep 2009 03:20:16 +0000 (05:20 +0200)
This is really confusing and also breaks against windows,
as it doesn't accept fragmented bind requests.

metze

source3/rpc_client/cli_pipe.c

index 5392d1f78feda92ea4ab40c3a8f9eea786c60fcb..34b861690704c4edf3a54349218a866c422501be 100644 (file)
@@ -1296,7 +1296,7 @@ static struct tevent_req *rpc_api_pipe_send(TALLOC_CTX *mem_ctx,
 
        max_recv_frag = cli->max_recv_frag;
 
-#ifdef DEVELOPER
+#if 0
        max_recv_frag = RPC_HEADER_LEN + 10 + (sys_random() % 32);
 #endif
 
@@ -2005,7 +2005,7 @@ static uint32 calculate_data_len_tosend(struct rpc_pipe_client *cli,
 {
        uint32 data_space, data_len;
 
-#ifdef DEVELOPER
+#if 0
        if ((data_left > 0) && (sys_random() % 2)) {
                data_left = MAX(data_left/2, 1);
        }