Jaagrav / CodeX-API

The new version of CodeX API with it's backend, a lot of you wanted me to make the backend opensource, now it's ready to receive contributions from you. Thanks for being patient, more languages coming soon, happy hacking!
https://codex.jaagrav.in/
MIT License
193 stars 66 forks source link

API is crashed #13

Closed SaurabhKhade closed 1 year ago

SaurabhKhade commented 2 years ago

I written a program in C++ for infinite memory usage which is as follows

#include<iostream>
using namespace std;

int main() {
    while(true) {
        int *n = new int[10000];
    }
}

I think the API has been crashed after executing above code as it is showing 'Network Error' now (earlier it was working fine). please try to resolve this issue and place a limit on memory usage and execution time.

Jaagrav commented 1 year ago

The API is back live, check out this release. The API should not crash, if it does, it will self recover so it was not your fault, it was just heroku discontinuing their free tier.

https://github.com/Jaagrav/CodeX-API/releases/tag/v1-alpha