HTTP function crashing the server
#7

The page content is copied to the AMX heap when passed to an HTTP callback (that's true for all callbacks taking a string parameter), and if the heap is too small to hold the data you may run into problems like this. You can use #pragma dynamic to fix it but the server can tsill crash if the page suddenly becomes bigger, so it's kind of not a real fix. It would have been better if Kalcor introduced a new API for getting the content instead of merely passing it to a callback, like GetHTTPResponseData(dest[], size) or something similar.
Reply


Messages In This Thread
HTTP function crashing the server - by Lorenc_ - 18.01.2014, 01:58
Re: HTTP function crashing the server - by ProjectMan - 18.01.2014, 05:36
Re: HTTP function crashing the server - by iZN - 18.01.2014, 07:04
Re: HTTP function crashing the server - by Lorenc_ - 18.01.2014, 08:13
Re: HTTP function crashing the server - by tyler12 - 18.01.2014, 08:33
Re: HTTP function crashing the server - by Lorenc_ - 18.01.2014, 16:01
Re: HTTP function crashing the server - by xeeZ - 18.01.2014, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)