Hi all,
I am trying to download large file (320KB) using nx_http Api as follows( pseudo code)
status1 = nx_http_client_get_start(**args)
if (status1 == NX_SUCCESS)
{
do
{
status2 = nx_packet_allocate(&g_packet_pool0, &my_packet, NX_TCP_PACKET, NX_WAIT_FOREVER);
status3 = nx_http_client_get_packet(&g_http_client0, &my_packet, 200);
store_packet(my_packet) // function to store packet
status4 = nx_packet_release(pkt)
} while(status3 != NX_HTTP_GET_DONE);
I'm able to download files of small sizes . But for large size files (~200kB) downloading stops after approximately 30KB and status3 returning the value 0x1.
I have increased packet pool size to 2048 and pool depth to 32. but still problem exists.