Skip to content

Commit

Permalink
pkt-line: move LARGE_PACKET_MAX definition from sideband
Browse files Browse the repository at this point in the history
Having the packet sizes defined near the packet read/write
functions makes more sense.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
peff authored and gitster committed Feb 20, 2013
1 parent 819b929 commit 047ec60
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions http.c
Expand Up @@ -5,6 +5,7 @@
#include "url.h"
#include "credential.h"
#include "version.h"
#include "pkt-line.h"

int active_requests;
int http_is_verbose;
Expand Down
3 changes: 3 additions & 0 deletions pkt-line.h
Expand Up @@ -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
3 changes: 0 additions & 3 deletions sideband.h
Expand Up @@ -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);

Expand Down

0 comments on commit 047ec60

Please sign in to comment.