HTTP function crashing the server
#1

Hi!

I have experienced this crash for some time now and noticed that if you use GET on a page with too much content, your server will just crash.

I really can't even limit the string sent.

pawn Код:
public OnPotatoHTTPResponse( index, response_code, data[ ] );

public OnGameModeInit( )
{
    HTTP( INVALID_PLAYER_ID, HTTP_GET, "sfcnr.com/potato", "", "OnPotatoHTTPResponse" );
    return 1;
}

public OnPotatoHTTPResponse( index, response_code, data[ ] )
{
    if( strlen( data ) < 1024 ) return 0;
    printf( "%s", data );
    return 1;
}
Specifically that link will lead you to a internal server crash.

Please fix this! Thanks.
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)