Skip to content

usefullness of Lwt_io.establish_server #196

Closed

Description

@zoggy

Hello,

The type of Lwt_io.establish_server is the following:

val establish_server : 
  ?fd:Lwt_unix.file_descr ->
  ?buffer_size:int ->
  ?backlog:int ->
  Unix.sockaddr ->
  (input_channel * output_channel -> unit) ->
  server

The function f handling connections is supposed to return unit instead of unit Lwt.t. Is this intended ? With this type, establish_server is useless, since using the channels requires using Lwt_io functions. Looking at the implementation, the server does not accepted any other request during the execution of f. This is not very Lwt-ish.

Activity

  1. zoggy commented on Dec 4, 2015

    @zoggy
    ContributorAuthor

    Hum, ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions