0
当我使用猫鼬处理一些http请求时,它有时无法获取发布数据。有没有人遇到过这个问题?我不确定猫鼬是否足够稳定。任何人都可以提出一些想法 在此先感谢。猫鼬http服务器有时无法获得发布数据
我使用restClient发送http请求。 HTTP: 猫鼬图书馆从下载//code.google.com/p/mongoose/
当我使用猫鼬处理一些http请求时,它有时无法获取发布数据。有没有人遇到过这个问题?我不确定猫鼬是否足够稳定。任何人都可以提出一些想法 在此先感谢。猫鼬http服务器有时无法获得发布数据
我使用restClient发送http请求。 HTTP: 猫鼬图书馆从下载//code.google.com/p/mongoose/
我遇到的是 上传文件大小超过120MB的问题,将是一个内存警告,然后程序crashes.After了初步试验,结果得到的2个内存级别的警告代码:
MongooseServer.m
void *handleRequest(enum mg_event event,
struct mg_connection *conn,
const struct mg_request_info *request_info)
{
...
if ((cl = mg_get_header(conn, "Content-Length")) != NULL) {
len = atoi(cl);
if ((buf = malloc(len)) != NULL) {
mg_read(conn, buf, len);
body = [NSData dataWithBytes:buf length:len];
free(buf);
}
}
...
}
具体问题出在哪里我还没有确定,已经经过进一步调试
确定