[vim/vim] Port socketserver to use channels and JSON based protocol (PR #19782)

7 views
Skip to first unread message

Foxe Chen

unread,
Mar 21, 2026, 2:10:42 PM (3 days ago) Mar 21
to vim/vim, Subscribed

This is not backwards compatible with the old protocol, but I think it is worth it. Using JSON is much simpler instead of trying to understand a custom binary protocol.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19782

Commit Summary

  • 400c2bd port socketserver to use channels and JSON based protocol

File Changes

(11 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782@github.com>

Foxe Chen

unread,
Mar 21, 2026, 2:12:03 PM (3 days ago) Mar 21
to vim/vim, Push

@64-bitman pushed 1 commit.

  • 27dc4d8 port socketserver to use channels and JSON based protocol


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/400c2bdaa8c2a0ffc16fbe17271b823e602cca95/after/27dc4d8d96caad29c802ea05521c7c951b96f479@github.com>

Foxe Chen

unread,
Mar 21, 2026, 4:56:36 PM (3 days ago) Mar 21
to vim/vim, Push

@64-bitman pushed 3 commits.

  • acebaf2 port socketserver to use channels and JSON based protocol
  • 2f05b7d remove old socketserver code
  • 674f15a update makefile


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/27dc4d8d96caad29c802ea05521c7c951b96f479/after/674f15a89c7da7b6d200105d70dd64e5afc0ff55@github.com>

Foxe Chen

unread,
Mar 21, 2026, 7:04:14 PM (3 days ago) Mar 21
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/674f15a89c7da7b6d200105d70dd64e5afc0ff55/after/b4de3c8b33bc095856a82ef43d641479f0939c05@github.com>

Foxe Chen

unread,
Mar 23, 2026, 8:21:01 PM (yesterday) Mar 23
to vim/vim, Push

@64-bitman pushed 2 commits.

  • 7893652 implement reply interface
  • 5360360 change ifdefs for clientserver code


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b4de3c8b33bc095856a82ef43d641479f0939c05/after/536036033697a0c2dd8ff85e9bb965aa37e396cd@github.com>

Foxe Chen

unread,
Mar 23, 2026, 11:04:17 PM (yesterday) Mar 23
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/536036033697a0c2dd8ff85e9bb965aa37e396cd/after/fbe5e5f5db5a782f0bd740287b80007a0b28db27@github.com>

Foxe Chen

unread,
Mar 23, 2026, 11:05:46 PM (yesterday) Mar 23
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/d9aeb75bfa33fc731265dffd5f6ac408f71366d4/after/b4fca021cec3b0c44ccadaf1eb7dc3973d9029d9@github.com>

Foxe Chen

unread,
3:55 PM (7 hours ago) 3:55 PM
to vim/vim, Push

@64-bitman pushed 7 commits.

  • ce61b89 port socketserver to use channels and JSON based protocol
  • e18ea9a remove old socketserver code
  • 1df670b update makefile
  • 0beb98f support poll
  • 5d5c9c0 implement reply interface
  • d7bc081 change ifdefs for clientserver code
  • 7c78864 pass test_clientserver


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b4fca021cec3b0c44ccadaf1eb7dc3973d9029d9/after/7c78864c07034cddcb74eec7c9792ecccf91dc5f@github.com>

Foxe Chen

unread,
7:30 PM (4 hours ago) 7:30 PM
to vim/vim, Push

@64-bitman pushed 7 commits.

  • 15c629f port socketserver to use channels and JSON based protocol
  • efc78cc remove old socketserver code
  • 7a16a7c update makefile
  • dc3c971 support poll
  • d78e5a3 implement reply interface
  • 8e41afe change ifdefs for clientserver code
  • 26d9b72 pass test_clientserver


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/7c78864c07034cddcb74eec7c9792ecccf91dc5f/after/26d9b72b2690dfeb7c18985a5531d6f69eed81b1@github.com>

Foxe Chen

unread,
8:48 PM (3 hours ago) 8:48 PM
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/26d9b72b2690dfeb7c18985a5531d6f69eed81b1/after/b1488798da664f3d294148338395e35163710c41@github.com>

Foxe Chen

unread,
8:50 PM (2 hours ago) 8:50 PM
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/b1488798da664f3d294148338395e35163710c41/after/7eaf454e2967c87826ac6dd8fde55482c4207062@github.com>

Foxe Chen

unread,
9:43 PM (2 hours ago) 9:43 PM
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/7eaf454e2967c87826ac6dd8fde55482c4207062/after/3b74962ea32d2d1711d7716ebf1cade8acfbb90c@github.com>

Foxe Chen

unread,
10:04 PM (1 hour ago) 10:04 PM
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/3b74962ea32d2d1711d7716ebf1cade8acfbb90c/after/602d848203e2ee22f8b543eca3ee28f1712d7a95@github.com>

Foxe Chen

unread,
10:06 PM (1 hour ago) 10:06 PM
to vim/vim, Subscribed

@64-bitman commented on this pull request.


In src/socketserver.c:

> +	    if (mch_access((char *)buf, F_OK) != 0)
+		got = true;
+	    else
+	    {
+		emsg_silent++;
+		channel = channel_open_unix((char *)buf, NULL);
+		emsg_silent--;
+
+		if (channel != NULL)
+		{
+		    channel_close(channel, false);
+		    channel_clear(channel);
+		}
+		else
+		{
+		    mch_remove(buf);

Fixed


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/review/4003461802@github.com>

Foxe Chen

unread,
10:11 PM (1 hour ago) 10:11 PM
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/602d848203e2ee22f8b543eca3ee28f1712d7a95/after/a2036984c0be65034cf276c875ba76106d71b871@github.com>

Foxe Chen

unread,
10:36 PM (1 hour ago) 10:36 PM
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/a2036984c0be65034cf276c875ba76106d71b871/after/0accf6246db51dbeb601edc84e8ed4a3aa0b89ad@github.com>

Foxe Chen

unread,
10:38 PM (1 hour ago) 10:38 PM
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#19782)

@pemensik Can you test if this PR fixes your issue? Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/c4122732000@github.com>

Foxe Chen

unread,
10:43 PM (1 hour ago) 10:43 PM
to vim/vim, Push

@64-bitman pushed 1 commit.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/0accf6246db51dbeb601edc84e8ed4a3aa0b89ad/after/26a7fc89b971b9cec87859d448c0b8fbb25892ab@github.com>

Foxe Chen

unread,
10:52 PM (27 minutes ago) 10:52 PM
to vim/vim, Push

@64-bitman pushed 2 commits.


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19782/before/26a7fc89b971b9cec87859d448c0b8fbb25892ab/after/b181969254a6c36b68384902047ddb41ceaaa8f3@github.com>

Reply all
Reply to author
Forward
0 new messages