I\'m working on a little project to make a 1v1 chat system. I wanted to work on a project where I could put Server-Sent Events
to good use. It\'s been working prett
PHP has exclusive lock around session. Only one process at a time can use it. This is usually unnoticeable because PHP processes start and end quickly, but with SSE you're keeping the session open forever and all other PHP processes will wait until SSE process ends.
You can execute session_write_close()
to release the session to other processes.