• Kirill Smelkov's avatar
    Revert "dropbear: Don't waste transfer time in favour of small-memory machines defaults" · 55460a4a
    Kirill Smelkov authored
    This reverts commit 605e564b.
    
    Rationale: Stability matters:
    
    Quoting 605e564b:
    > Besides changing only recv window size at runtime breaks compatibility with
    > openssh: if we only do `-W 1M` on server and try to upload data with openssh as
    > client, dropbear complains
    >
    >     [3302] Apr 17 23:10:06 Exit (slapuser2): Bad packet size 32777
    >
    > and connection terminates. Thus RECV_MAX_PAYLOAD_LEN increase is also
    > required, which cannot be done via option at runtime:
    >
    >     https://github.com/mkj/dropbear/blob/DROPBEAR_0.53.1/options.h#L268
    >
    >     ---- 8< ----
    >     /* Maximum size of a received SSH data packet - this _MUST_ be >= 32768
    >        in order to interoperate with other implementations */
    >     #ifndef RECV_MAX_PAYLOAD_LEN
    >     #define RECV_MAX_PAYLOAD_LEN 32768
    >     #endif
    >     ---- 8< ----
    >
    > So let's increase DEFAULT_RECV_WINDOW to 1M and RECV_MAX_PAYLOAD_LEN
    > appropr...
    55460a4a
buildout.cfg 1.58 KB