diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-08-16 03:19:32 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-16 02:16:29 -0700 |
commit | fac7244477c6f2537f9abf3e83abf5e77177e548 (patch) | |
tree | 54f523e9e4571a15a0a7392028760005375ddc28 /rpc/rpc-transport/socket/src/socket.h | |
parent | 5065b0824ed01cca59501d74c227b136a5b0e65e (diff) |
rpc: move handling of fragment headers to socket.
- fragment headers are only specific to tcp and hence should be handled in
transport-socket instead of by rpc layer.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.h')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.h b/rpc/rpc-transport/socket/src/socket.h index 5078b161e..4016153e7 100644 --- a/rpc/rpc-transport/socket/src/socket.h +++ b/rpc/rpc-transport/socket/src/socket.h @@ -38,6 +38,8 @@ #define GF_DEFAULT_SOCKET_LISTEN_PORT 6969 +#define RPC_MAX_FRAGMENT_SIZE 0x7fffffff + /* This is the size set through setsockopt for * both the TCP receive window size and the * send buffer size. @@ -97,6 +99,7 @@ struct ioq { }; }; + uint32_t fraghdr; struct iovec vector[MAX_IOVEC]; int count; struct iovec *pending_vector; |