Skip to content
  1. May 11, 2015
    • Gregory Nutt's avatar
      Increase the size of the number of bytes sent from uint16_t to uint32_t in... · 1f3ee831
      Gregory Nutt authored
      Increase the size of the number of bytes sent from uint16_t to uint32_t in order to avoid TCP errors with long sessions.  For exmple:
      
      int hello_main(int argc, char *argv[])
      {
         uint32_t i;
         for(i = 0; i < 65536; i++)
          {
            printf("Hello, World!!\n");
          }
      
        printf("press any key!!\n");
        if (getchar()=='t')
          return 0;
        else
          return 1;
      }
      
      When ran in a Telnet session, the "press any key" is not displayed because the tcp session closed unexpectedly with:
      
      tcp_input: ERROR: conn->sndseq xx, conn->unacked xx"
      
      This is fixed by increasing the width of conn->sent to 32-bits to prevent overflow.
      
      From Rony XLN
      1f3ee831
  2. May 10, 2015
  3. May 09, 2015
  4. May 08, 2015
  5. May 07, 2015
  6. May 06, 2015