News for hackers. Stuff that matters.
Re:Show HN: SharePad.io – A collaborative code editor and co... by yufw on Friday January 01, 2021 @01:27PM (#25605354)
I have running time limit on the containers.

The first snippet is a fork bomb and will cause the container to run out of memory before the timeout. It does terminate since I have set a 256M memory limit. However, it is not sending the correct response in this case and the message in the output tab is not updated properly.

Fork works just fine, https://sharepad.io/p/aBn5Oxu

Re:Show HN: SharePad.io – A collaborative code editor and co... by alex-wallish on Friday January 01, 2021 @10:05PM (#25609963)
Nice, i was wandering why the fork bomb didn't give a time out message, but that makes sense.

Are you using websockets to broadcast realtime updates to the clients, as one types, or do you have some other way to achieve that?