Commit 047ec602 authored by Jeff King's avatar Jeff King Committed by Junio C Hamano

pkt-line: move LARGE_PACKET_MAX definition from sideband

Having the packet sizes defined near the packet read/write
functions makes more sense.
Signed-off-by: default avatarJeff King <peff@peff.net>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 819b929d
......@@ -5,6 +5,7 @@
#include "url.h"
#include "credential.h"
#include "version.h"
#include "pkt-line.h"
int active_requests;
int http_is_verbose;
......
......@@ -58,6 +58,9 @@ int packet_read(int fd, char *buffer, unsigned size, int options);
*/
int packet_read_line(int fd, char *buffer, unsigned size);
#define DEFAULT_PACKET_MAX 1000
#define LARGE_PACKET_MAX 65520
int packet_get_line(struct strbuf *out, char **src_buf, size_t *src_len);
#endif
......@@ -4,9 +4,6 @@
#define SIDEBAND_PROTOCOL_ERROR -2
#define SIDEBAND_REMOTE_ERROR -1
#define DEFAULT_PACKET_MAX 1000
#define LARGE_PACKET_MAX 65520
int recv_sideband(const char *me, int in_stream, int out);
ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max);
......
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