Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Problem with downloading big file using NETX

$
0
0

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.


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>