diff --git a/README b/README index 146cfa1c..6acaeba4 100644 --- a/README +++ b/README @@ -39,9 +39,10 @@ For building under Windows with Visual Studio, see the file "ide/winvs/README.md". NOTE: On resource constrained devices the DEFAULT_WINDOW_SZ may need to be set -to a lower size. By default channels are set to handle 1 Mb of data being sent -and received. An example of setting a lower window size for new channels would -be as follows "./configure CPPFLAGS=-DDEFAULT_WINDOW_SZ=16384" +to a lower size. It can also be increased in desktop use cases to help with +large file transfers. By default channels are set to handle 16,384 bytes of data +being sent and received. An example of setting a window size for new channels +would be as follows "./configure CPPFLAGS=-DDEFAULT_WINDOW_SZ=16384" examples -------- diff --git a/README.md b/README.md index 6a81b3e6..db6ac8d4 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,10 @@ For building under Windows with Visual Studio, see the file "ide/winvs/README.md". NOTE: On resource constrained devices the DEFAULT_WINDOW_SZ may need to be set -to a lower size. By default channels are set to handle 1 Mb of data being sent -and received. An example of setting a lower window size for new channels would -be as follows "./configure CPPFLAGS=-DDEFAULT_WINDOW_SZ=16384" +to a lower size. It can also be increased in desktop use cases to help with +large file transfers. By default channels are set to handle 16,384 bytes of data +being sent and received. An example of setting a window size for new channels +would be as follows "./configure CPPFLAGS=-DDEFAULT_WINDOW_SZ=16384" examples -------- diff --git a/wolfssh/internal.h b/wolfssh/internal.h index 59272647..7037e632 100644 --- a/wolfssh/internal.h +++ b/wolfssh/internal.h @@ -130,7 +130,7 @@ enum { #define DEFAULT_HIGHWATER_MARK ((1024 * 1024 * 1024) - (32 * 1024)) #endif #ifndef DEFAULT_WINDOW_SZ - #define DEFAULT_WINDOW_SZ (1024 * 1024) + #define DEFAULT_WINDOW_SZ 16384 #endif #ifndef DEFAULT_MAX_PACKET_SZ #define DEFAULT_MAX_PACKET_SZ (16 * 1024)