Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Make timeout configurable #54

Merged
merged 1 commit into from
Jun 3, 2014
Merged

Make timeout configurable #54

merged 1 commit into from
Jun 3, 2014

Conversation

lpgauth
Copy link
Contributor

@lpgauth lpgauth commented Mar 11, 2014

No description provided.

@essen
Copy link
Member

essen commented Mar 11, 2014

I think returning a {ok, Req, State, Timeout} from init is better, and more in line with how everything else works.

@lpgauth
Copy link
Contributor Author

lpgauth commented Mar 11, 2014

My only concern was that it changes the API...

Should it support {ok, Req, State} and {ok, Req, State, Timeout} to be backward compatible?

@essen
Copy link
Member

essen commented Mar 11, 2014

Yes that's what I mean, accept both of them. And not just because it would be backward compatible. It's the same way in gen_server, cowboy_websocket and others.

@essen essen merged commit 7e5c391 into ninenines:master Jun 3, 2014
@essen
Copy link
Member

essen commented Jun 3, 2014

Merged, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants