Skip to content

Commit

Permalink
Revert "[global] reduce memory footprint by a long shot"
Browse files Browse the repository at this point in the history
This reverts commit 4b4290a.
  • Loading branch information
fabbione committed Oct 21, 2015
1 parent 4b4290a commit 7a15826
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions TODO
Expand Up @@ -7,6 +7,9 @@ link/host level:
- (issue) implement packet fragmentation?, is the only
solution to avoid conflicts with tun/tap mtu setting and various
others buffer sizes.
- (issue) sort out read buf from recv_from_links since it might be too small vs
sending out 128k (+header+encryption+....). this is also related
to max PMTU
- (rfe) compress: should only compress user data, we will add a bit in the data
header to indicate if the pckt is compressed or not (save time).
this approach allow runtime change of compress.
Expand Down
2 changes: 1 addition & 1 deletion libknet/internals.h
Expand Up @@ -17,7 +17,7 @@
#include "libknet.h"
#include "onwire.h"

#define KNET_DATABUFSIZE KNET_MAX_PACKET_SIZE + KNET_HEADER_ALL_SIZE
#define KNET_DATABUFSIZE (KNET_MAX_PACKET_SIZE * 2) + KNET_HEADER_DATA_SIZE
#define KNET_DATABUFSIZE_CRYPT KNET_DATABUFSIZE * 2

struct knet_listener {
Expand Down

0 comments on commit 7a15826

Please sign in to comment.