11.12.2011, 16:03
Bug 1:
Callback specified in HTTP will not be called if data[] exceeds a size limit (maybe 4096?)
Example script to reproduce:
Bug 2:
HTTP() request makes index "stuck", and an other HTTP call to that index will crash the server:
Steps to reproduce:
- Compile the filterscript shown in Bug 1
- Load the filterscript
- Reload the filterscript with reloadfs
- Server crashes
Callback specified in HTTP will not be called if data[] exceeds a size limit (maybe 4096?)
Example script to reproduce:
pawn Код:
#include <a_samp>
#include <a_http>
public OnFilterScriptInit()
{
HTTP(4, HTTP_GET, "www.******.com/?q=a", "", "LolCallBack");
}
forward LolCallBack(index, response_code, data[]);
public LolCallBack(index, response_code, data[])
{
print("callback fired");
printf("IDX %d, response_code %d, data size = %d", index, response_code, strlen(data));
return 1;
}
HTTP() request makes index "stuck", and an other HTTP call to that index will crash the server:
Steps to reproduce:
- Compile the filterscript shown in Bug 1
- Load the filterscript
- Reload the filterscript with reloadfs
- Server crashes