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

Distel fails with OTP 23 #71

Open
cmoid opened this issue Apr 28, 2021 · 3 comments
Open

Distel fails with OTP 23 #71

cmoid opened this issue Apr 28, 2021 · 3 comments

Comments

@cmoid
Copy link

cmoid commented Apr 28, 2021

There are apparently changes to the external term format that need to be supported. I'll look into it further.

Connection attempt from node 'distel_38187\@machine.local' rejected since it cannot handle ["BIG_CREATION"].**

@zwizwa
Copy link

zwizwa commented Mar 28, 2023

https://www.erlang.org/doc/apps/erts/erl_ext_dist.html#NEW_PID_EXT
https://www.erlang.org/doc/apps/erts/erl_dist_protocol.html

-define(DFLAG_BIG_CREATION, 16#40000).

The node understands big node creation tags NEW_PID_EXT, NEW_PORT_EXT and NEWER_REFERENCE_EXT. This flag is mandatory. If not present, the connection is refused.

It gets a bit further with these added in the appropriate places:

(defconst derl-flag-big-creation #x40000)

(newPid . 88)

((newPid) (vector erl-tag
'erl-pid
(erlext-read-obj) ; node
(erlext-read4) ; id
(erlext-read4) ; serial
(erlext-read4))) ; creation

I'm still getting weird behavior but that might be my messy hack as well. If I find more I'll report here.

@zwizwa
Copy link

zwizwa commented Apr 1, 2023

Weird behavior was just my config issues. I think.
It seems to work now in my messy hack branch https://github.com/zwizwa/distel/tree/dev

@cmoid
Copy link
Author

cmoid commented Nov 1, 2023

@zwizwa thanks! I finally got some time to look at this. I'm running Erlang 26 and had to do a bit more to get it working. This branch works for me on OSX, but it won't work for Erlang versions earlier than 23.

I noticed a lot of deprecation warnings when compiling, hopefully I'll have some time to do more and submit some PRs.

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

2 participants