posting large file cause too much (100%)CPU

2009-06-08
2012-12-14
  • simaul liang
    simaul liang
    2009-06-08

        i am using libupnp as http server to support upload function. when i upload a large file no matter using content-length header or chunk-transfer, the CPU process is high, something time is 100%. i also analyze the source code (http_RecvPostMessage: webserver.c), and i final find out that there are too much memcpy and malloc operation in this function(http_RecvPostMessage). i think that is the reason why perfermance is such high. can everyone help me to solve this problem?