-
Notifications
You must be signed in to change notification settings - Fork 33
'net' module: tests and fixes #313
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5bd6f99
add net test file, with one test group (connection)
natevw 5de68a7
extend net tests to include server, IP format checking
natevw 94af33c
gracefully handle bogus IP candidates
natevw 06a1865
properly factor into IPv4/6/either methods
natevw 2986cd9
get most IPv6 and IPv6 tests passing via StackOverflow regexes. unfor…
natevw c534790
"fix" the IPv6 regex ;-)
natevw 6694a21
move IP address and misc. helpers out from middle of TCPSocket code
natevw 2127273
close socket when stream finished, fire end event whenever __listen l…
natevw 2442905
temporary workaround for https://github.com/tessel/runtime/issues/311
natevw 8157595
net.Server should emit 'connection', not 'socket', events
natevw 0356a79
have net.Server emit listen event, handle optional arguments to .list…
natevw ee266e9
actually register listening cb, fire event async so sync-registered l…
natevw b6b0c68
basic JS-side automatic port binding. does not handle potential confl…
natevw dd2fed5
don't throw on listen error, fixes #332
natevw 8082d81
adds a test for port binding behavior, fixes #331
natevw 719d4c6
avoid throwing and emit errors instead (except for two usage asserts)…
natevw e1f5163
fix whitespace
natevw 53d284e
stop server from continued polling after socket is closed, fixes #333
natevw fb0204c
default host when connecting, fixes #311
natevw c378002
implement net.Socket.prototype.setTimeout
natevw 68b0d12
add warning and note about setNoDelay
natevw 0377896
handle options to createServer, warn if allowHalfOpen requested
natevw 5faf6dd
handle options to createServer, warn if allowHalfOpen requested
natevw b489d34
[caution: tm_net change will need mirroring in firmware] basic pass a…
natevw e416432
use tinytap which is the only small test runner that "works", https:/…
natevw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add
tttas a dependency? Should be version 1.0.3. Without it the Travis tests fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, the ttt changes got merged into tiny tap