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

Timob 3800 socket tcp timeout for accept iphone #1425

Conversation

sakisakira
Copy link
Contributor

You can use timeout option for accept, like, socket.listen(); socket.timeout = 5
000; socket.accept();, then it wait 5 seconds for incomming connection.
It will explicitly distinct with socket.accept({timeout: 5000}).

SAkira added 2 commits February 16, 2012 01:45
…after 5000 seconds, not 5 second. After this modification, it only just wait 5 seconds.
…timeout = 5

000; socket.accept();, then it wait 5 seconds for incomming connection.
It will explicitly distinct with socket.accept({timeout: 5000}).
@negupta
Copy link
Contributor

negupta commented Feb 15, 2012

sakisakira - please file a JIRA ticket with a valid test case as per the pull request guidelines before we can process this PR.

@negupta
Copy link
Contributor

negupta commented Feb 15, 2012

Signed CLA is in place.

@marshall
Copy link
Contributor

@sakisakira Thanks for this and #1426, we've done some talking today and realize we need to allow for more granular timeout control in more situations in our Socket.TCP API.

I've opened a new ticket here that you can track:
https://jira.appcelerator.org/browse/TIMOB-7992

Since this will require more API changes, I am closing this PR and #1426, and we will tackle these new APIs for 2.1. If you'd like to be involved in the discussion, feel free to drop by #titanium_dev on irc.freenode.net and poke me (marshall_law) , Opie (dizymonkee), or Stephen (stramer)

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.

None yet

3 participants