calaos / calaos_base

Calaos server
https://calaos.fr
GNU General Public License v3.0
160 stars 37 forks source link

HttpClient send corrupt data #135

Closed FragJage closed 6 years ago

FragJage commented 6 years ago

On calaos_server, the method HttpClient::sendToClient use c_str pointer from a local string to send data with write method of uvw. When libuv send data, the local string is free. For little string there is not problem, but on my server (ubuntu 14.04, cpu atom, 2 Go) files such as jquery.js or angular.js is send corrupted.

raoulh commented 6 years ago

Nice catch, will fix that, thanks

FragJage commented 6 years ago

Very nice, it's ok on my server. Thanks