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

[Dpi_read_comm_keys] No such file or directory on Cygwin #337

Open
niutech opened this issue Jan 14, 2025 · 2 comments
Open

[Dpi_read_comm_keys] No such file or directory on Cygwin #337

niutech opened this issue Jan 14, 2025 · 2 comments

Comments

@niutech
Copy link

niutech commented Jan 14, 2025

When I run dillo data:text/html,Hello%2C%20World version 3.2.0-rc1 in Cygwin I get the following output:

Domain: Default accept.
dillo_dns_init: Here we go! (threaded)
TLS library: mbed TLS 2.23.0
Trusting 148 TLS certificates.
Disabling cookies.
Nav_open_url: new url='data:text/html,Hello%2C%20World'
** ERROR **: [Dpi_read_comm_keys] No such file or directory
Dpi_check_dpid: check_st=-1
Dpi_check_dpid: EAGAIN
Dpi_blocking_start_dpid: try 1
[dpid]: a_Misc_mksecret: e4d94003
dpid started
Dpi_check_dpid: check_st=1
Dpi_check_dpid: OK
Dpi_get_server_port: server_name = [proto.data]
[<cmd='check_server' msg='proto.data' '>]
Dpi_get_server_port: can't read server port from dpid.
Dpi_connect_socket: can't get port number for proto.data

Now there is a file ~/.dillo/dpid_comm_keys with the following contents: 5020 e4d94003 but Dillo doesn't load anything.
After Dillo restart, the window is still blank and this is the console output:

Domain: Default accept.
dillo_dns_init: Here we go! (threaded)
TLS library: mbed TLS 2.23.0
Trusting 148 TLS certificates.
Disabling cookies.
Nav_open_url: new url='data:text/html,Hello%2C%20World'
Dpi_check_dpid: check_st=1
Dpi_check_dpid: OK
Dpi_get_server_port: server_name = [proto.data]
[<cmd='check_server' msg='proto.data' '>]
Dpi_get_server_port: can't read server port from dpid.
Dpi_connect_socket: can't get port number for proto.data

The port 5020 is opened, which is seen by netstat:

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    127.0.0.1:5020         PC:65373             TIME_WAIT
@niutech niutech changed the title [Cygwin] Dpi_get_server_port: can't read server port from dpid [Dpi_read_comm_keys] No such file or directory on Cygwin Jan 14, 2025
@rodarima
Copy link
Member

Dpi_connect_socket: can't get port number for proto.data

It looks dpid cannot find the data: builtin plugin. What is the value of dpi_dir in ~/.dillo/dpidrc? https://dillo-browser.github.io/user_help.html#dpidrc

@niutech
Copy link
Author

niutech commented Jan 16, 2025

Here is ~/.dillo/dpidrc:

dpi_dir=/usr/local/lib/dillo/dpi

proto.file=file/file.dpi.exe
proto.ftp=ftp/ftp.filter.dpi.exe
proto.data=datauri/datauri.filter.dpi.exe

And here is ls /usr/local/lib/dillo/dpi/:

bookmarks  cookies  datauri  downloads  file  ftp  hello  vsource

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