Hi,
I have been integrating the server into our products, and so far with great results.
Many thanks.
One question,
I am using the multi-threaded version with a thread pool of size zero.
However, after issuing several tftp get operations, I notice that the server memory is getting bigger, and not returning to its original size. (I checked this with ps)
I tried to look at the code for the reason of this problem. And I think it has to do with the mode you create the thread.
If you use the following way to create the thread, the memory is returning to its original size:
At the point when you confine string it implies that you don't need to go along with() it before leaving primary() . String library will really sit tight for each such string underneath principle, however you ought not think about it. separate() is chiefly helpful when you have an assignment that must be done in foundation, yet you couldn't care less about its execution.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have been integrating the server into our products, and so far with great results.
Many thanks.
One question,
I am using the multi-threaded version with a thread pool of size zero.
However, after issuing several tftp get operations, I notice that the server memory is getting bigger, and not returning to its original size. (I checked this with ps)
I tried to look at the code for the reason of this problem. And I think it has to do with the mode you create the thread.
If you use the following way to create the thread, the memory is returning to its original size:
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_DETACHED);
pthread_create(&threadId, &attr, processRequest, NULL)
pthread_attr_destroy(&attr);
thanks for your comments,
erez
Thanks Eres,
It was a good find and I have included with all future versions begining from 1.521.
Keep posting.
Thanks Again
Achal Dhir
At the point when you confine string it implies that you don't need to go along with() it before leaving primary() . String library will really sit tight for each such string underneath principle, however you ought not think about it. separate() is chiefly helpful when you have an assignment that must be done in foundation, yet you couldn't care less about its execution.