Scryer-prolog: socket_server_accept/4 cannot be interrupted with Ctrl-c

Created on 10 May 2020  路  3Comments  路  Source: mthom/scryer-prolog

Currently, I get:

?- use_module(library(sockets)).
   true.
?- socket_server_open(7014, Socket),
   socket_server_accept(Socket, Client, Stream, [type(binary)]).
^C^C^C^C^Z

Ideally, socket_server_accept/4 can also be interrupted, much like read/1.

enhancement good first issue

Most helpful comment

This might require a transition to mio or some other asynchronous I/O crate.

I think Tokio would be more appropriate, mio is really the low-level library on top of which Tokio is built. This is an issue I can take a look at I think!

All 3 comments

This might require a transition to mio or some other asynchronous I/O crate.

This might require a transition to mio or some other asynchronous I/O crate.

I think Tokio would be more appropriate, mio is really the low-level library on top of which Tokio is built. This is an issue I can take a look at I think!

@matt2xu : Thank you a lot, I would greatly appreciate this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Qqwy picture Qqwy  路  3Comments

UWN picture UWN  路  4Comments

XVilka picture XVilka  路  3Comments

UWN picture UWN  路  3Comments

triska picture triska  路  4Comments