You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not much sure, but it might be a good idea to debug the request processor, adding pp as breakpoints to the HTTP::Server::RequestProcessor#process method to find out what's going on...
Yes, #flush should write the buffer to the IO which means currently queued data should be send.
Unfortunately, your post lacks sufficient information to be able to help you. Could you provide a full description how you're actually testing this server code, what you expect it to do and what exactly goes wrong?
@vladfaust Your suggestion is not very helpful. It's based on a wild guess that RequestProcessor#process might be faulted, which is almost impossible to be relevant here. If there is actually a bug somewhere, it's in the IO stack. But without any information about how the server is supposed to behave and what it actually does, there is no way to tell what's actually the issue here.
Hi, I 'm trying to replicate the Server Side Event example from https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events , using this code :
I was hoping that
crystal/src/http/server/response.cr
Line 109 in 639e476
would do a similar job as
in the PHP example part, I mean, sending (flushing) response while keeping the http connexion open
Am I missing something or is the flush method just not design to do that ?
The text was updated successfully, but these errors were encountered: