Skip to content
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

WebSocket connection closed #45

Open
perryrivera opened this issue Apr 9, 2017 · 2 comments
Open

WebSocket connection closed #45

perryrivera opened this issue Apr 9, 2017 · 2 comments

Comments

@perryrivera
Copy link

perryrivera commented Apr 9, 2017

Environment:
Fedora 25
GNU Emacs 25.1.1

[privera@xxxxx smsn-mode-lisp]$ uname -a
Linux xxxxx 4.10.8-200.fc25.x86_64 #1 SMP Fri Mar 31 13:20:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

[privera@xxxxx elisp]$ ls -lh
total 0
lrwxrwxrwx. 1 privera privera 37 Mar 30 12:33 smsn-mode-lisp -> /home/privera/projects/smsn-mode/lisp

[privera@xxxxx smsn-mode-lisp]$ ls -lh
total 100K
drwxrwxr-x. 2 privera privera 4.0K Mar 30 12:30 lib
-rw-rw-r--. 1 privera privera 11K Apr 8 21:41 smsn-client.el
-rw-rw-r--. 1 privera privera 32K Apr 8 21:41 smsn-commands.el
-rw-rw-r--. 1 privera privera 3.5K Apr 8 21:41 smsn-data.el
-rw-rw-r--. 1 privera privera 8.2K Apr 8 21:41 smsn-env.el
-rw-rw-r--. 1 privera privera 2.0K Apr 8 21:41 smsn-http.el
-rw-rw-r--. 1 privera privera 2.9K Apr 8 21:41 smsn-mode.el
-rw-rw-r--. 1 privera privera 1.8K Apr 8 21:41 smsn-serde.el
-rw-rw-r--. 1 privera privera 14K Apr 8 21:41 smsn-view.el
-rw-rw-r--. 1 privera privera 2.3K Apr 8 21:41 smsn-websocket.el
-rw-rw-r--. 1 privera privera 1.2K Apr 8 21:41 smsn-wrapper.el


.emacs file:

;; Semantic Synchrony
(defvar smsn-server-protocol "websocket")
(defvar smsn-server-host "fortytwo.net")
;; These are the default, hence can be omitted.
;; (defvar smsn-server-host "127.0.0.1")
;; (defvar smsn-server-port 8182)

(let ((default-directory "~/.emacs.d/elisp/"))
(normal-top-level-add-subdirs-to-load-path))
(require 'smsn-mode)


[privera@rerun smsn-mode-lisp]$ git log
commit 381ca1c7cc71d848a9c4375a6becbbe83b32f662
Merge: 51c8aa5 3802e72


To reproduce problem:

  1. Start emacs
  2. Activate smsn-mode
  3. Ctrl+C s to search
  4. Search for a query pattern, e.g. pizza

Behavior:

  1. Status line says: Opening connection
  2. Status line says: WebSocket Connection closed
  3. I never get any pizza results...
@JeffreyBenjaminBrown
Copy link
Member

Some verbal guidance for the bash above: We got Perry's computer set up more or less like mine (although he's running Fedora and I run Ubuntu). The symbolic link to the lisp code was set up properly, and the .emacs file was identical to the one I was using. First we used the master branch of smsn-mode, then the develop branch (develop is the branch the commit message shown above came from). Somehow mine would connect to the graph at fortytwo.net while his wouldn't.

@joshsh
Copy link
Member

joshsh commented Apr 16, 2017

Thanks, @perryrivera, for the bug report (and sorry for the delay). A question: if you repeat steps 3 and 4 (i.e. search on "pizza" then, seeing a WebSocket error, search on "pizza" again), do you get a normal response (which should be two results about an "all egde" pizza)? I have seen the connection fail on the first try, but I do not yet know why it happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants