summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-20 23:29:11 +0200
committerStefan Metzmacher <metze@samba.org>2009-09-25 05:20:16 +0200
commit68b8149d1fb26b2fe1138c99d971754b0a30378b (patch)
treececd5e66687e2a1471a4dffac31781dc60181967 /source3
parentbb8a4a9d73915bc35430904bb45318141bb21e22 (diff)
downloadsamba-68b8149d1fb26b2fe1138c99d971754b0a30378b.tar.gz
samba-68b8149d1fb26b2fe1138c99d971754b0a30378b.tar.bz2
samba-68b8149d1fb26b2fe1138c99d971754b0a30378b.zip
s3:rpc_client: don't randomly fragment rpc pdu's in developer mode
This is really confusing and also breaks against windows, as it doesn't accept fragmented bind requests. metze
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 5392d1f78f..34b8616907 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -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);
}