This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCP transmission buffer size of NDK

I'm using the NDK packages with the version of 2_20_06_35 on the 648 platform.I want to increase my network transmission performance,so I modified some parameters,but I found that when the  transmission data reach to 500 KB above, it will appear send failure, return error code for "EWOULDBLOCK",then the network will be breakdown. I'd like to know when I'm modifying the transmission buffer size ,Whether I need to modify some other parameters?I this how to solve this problem.

Below is my configuration parameters

  rc = 16384;
    CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPTXBUF,
                 CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );
  rc = 4096;
    CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKMINTX,
                 CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );

    rc = 8192;
    CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPRXBUF,
                 CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );

    rc = 8192;
    CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPRXLIMIT,
                 CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );

    rc = 8192;
    CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKUDPRXLIMIT,
                 CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );

  • whether the rc can equal to 65536?and if I modify this parameter, which parameters I must to modify at the same time?

     rc = 16384;
        CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPTXBUF,
                     CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );