sockjs-erlang
                                
                                 sockjs-erlang copied to clipboard
                                
                                    sockjs-erlang copied to clipboard
                            
                            
                            
                        Experimental buffer flushing after session was closed
Few notes:
- Not sure if it should check response_pid from the state.
- I tried it locally with different transports - appears to be working
Hi @mrjoes - can you explain the rationale behind this patch for me please? I'm happy to do the QA and merge, but I need to properly understand the intent first.
Sure. For polling transports, when server closes connection, there might be something left in the outgoing queue. However, when client comes back to get more data, server sees that session was closed and will deny the request without flushing the queue.
So, it is not working according to websocket spec.
Right, that makes sense. Let me read through the spec and spend a but of time looking over the code. Hopefully I'll be able to answer (1) and we can get it merged.