Commit aa434321 authored by Wayne Davison's avatar Wayne Davison

Don't write out the protocol_version number in read_batch mode.

parent 36119893
...@@ -37,13 +37,9 @@ extern int protocol_version; ...@@ -37,13 +37,9 @@ extern int protocol_version;
void setup_protocol(int f_out,int f_in) void setup_protocol(int f_out,int f_in)
{ {
if (remote_protocol == 0) { if (remote_protocol == 0) {
if (am_server) { if (!read_batch)
remote_protocol = read_int(f_in);
write_int(f_out, protocol_version); write_int(f_out, protocol_version);
} else { remote_protocol = read_int(f_in);
write_int(f_out, protocol_version);
remote_protocol = read_int(f_in);
}
if (protocol_version > remote_protocol) if (protocol_version > remote_protocol)
protocol_version = remote_protocol; protocol_version = remote_protocol;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment