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

Add a ?fd argument to Lwt_io.{open_connection,with_connection,establish_... #74

Merged
1 commit merged into from
Aug 11, 2014

Conversation

vbmithr
Copy link
Member

@vbmithr vbmithr commented Aug 11, 2014

...server}.

The rationale is that one might want to perform sockopts to the
sockets created by those functions. They should therefore not
internally create a file descriptor for their underlying socket
without presenting a way for the user to do sockopts on them. This
patch makes it possible to provide a fd to use instead of creating a
new one, fixing this issue without changing the current interface.

…sh_server}.

The rationale is that one might want to perform sockopts to the
sockets created by those functions. They should therefore not
internally create a file descriptor for their underlying socket
without presenting a way for the user to do sockopts on them. This
patch makes it possible to provide a fd to use instead of creating a
new one, fixing this issue without changing the current interface.
@avsm
Copy link
Collaborator

avsm commented Aug 11, 2014

Very useful!

ghost pushed a commit that referenced this pull request Aug 11, 2014
Add a ?fd argument to Lwt_io.{open_connection,with_connection,establish_...
@ghost ghost merged commit 5631e6d into ocsigen:master Aug 11, 2014
@ghost
Copy link

ghost commented Aug 11, 2014

Thanks!

This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants