posting large file cause too much (100%)CPU

  • simaul liang
    simaul liang

        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?