]> andersk Git - gssapi-openssh.git/blobdiff - openssh/buffer.c
Add server-side GSSAPIDelegateCredentials option, enabled for use with
[gssapi-openssh.git] / openssh / buffer.c
index bdeb069db1c2b463b2237399cea312a1514b4a8f..1c04cab3901ed9822704b018637a9b0e510f1929 100644 (file)
 #define        BUFFER_MAX_LEN          0xa00000
 #define        BUFFER_ALLOCSZ          0x008000
 
-/* this value for BUFFER_MAX_HPN_LEN is */
-/* still undersized for the faster networks */
-/* it might make sense to have yet another */
-/* MAX_LEN for 10+GB networks. Something closer to */
-/* 128MB or 192MB -cjr*/
-#define        BUFFER_MAX_HPN_LEN      0x2000000 /*32MB*/
-
 /* Initializes the buffer structure. */
 
 void
@@ -134,7 +127,9 @@ restart:
 
        /* Increase the size of the buffer and retry. */
        newlen = roundup(buffer->alloc + len, BUFFER_ALLOCSZ);
-       if (newlen > BUFFER_MAX_HPN_LEN)
+       /* need it to be slightly larger than the MAX LEN for this */
+       /* still investigating *why* but this works for now -cjr */
+       if (newlen > (BUFFER_MAX_LEN_HPN + BUFFER_MAX_LEN)) 
                fatal("buffer_append_space: alloc %u not supported",
                    newlen);
        buffer->buf = xrealloc(buffer->buf, 1, newlen);
This page took 0.03295 seconds and 4 git commands to generate.