-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End_of_file exception when doing send
#92
Comments
Le 20/06/2017 à 14:29, Alin Popa a écrit :
Any idea what am I missing here?
Can you give me an example program that I can use to reproduce this issue?
Thanks,
…--
Vincent
|
Sure; although the context here is quite complex: implementing a Slack client, that does various things, and one of them is to make sure the connection is up and running (yeah, I could use the pinging mechanism that the Websocket_lwt is providing, but I wanted to be able to explicitly send Slack ping messages); In order to build it, you'll need to do:
then, to run it, you'll need a Slack token (don't worry about this one, will delete it after you've looked at it :) ):
so, I'm getting the following issue:
If removing the Thanks. |
Ok, cannot repro the issue (programs runs fine). But I'm using bleeding edge versions of tons of libs, here is my makefile line: The code I tested is a slightly modified version of yours: http://github.com/vbmithr/mlvin#lwt_test_send |
And what's happening when you add a |
I'll try with the bleeding edge repo, and see if I can reproduce the issue using your fork; thanks. |
Ok, getting all sort of errors when installing conduit against janestreet's bleeding edge repo...
|
You need to put all the projects I mentioned in my Makefile line in the same directory and have jbuilder build all of them simultaneously! Otherwise, I can repro your bug. I have the impression that the error is due to Slack closing the connection immediately after receiving the frame. Do you see the "reconnect_url" line that slack sends? Don't you think you have to reconnect at this URL once you get this message? Not sure about it… but you may try. |
I was also thinking the same thing, that might be a Slack issue, on how Slack does all the things behind the scene; regarding the |
I'm trying to do something like this, just before this line: https://github.com/vbmithr/ocaml-websocket/blob/master/lwt/wscat.ml#L27
and I'm getting an
End_of_file
exception;wasn't able to find anything within the documentation, or the code, that would help me to prevent that...
What I'm trying to do, in fact, is to have a periodic sender, that once at, let's say 10 seconds, will send some message to the server, and I imagine that
send
is used for that.Any idea what am I missing here?
Thanks.
The text was updated successfully, but these errors were encountered: