summaryrefslogtreecommitdiff
path: root/js/net_test.ts
AgeCommit message (Collapse)Author
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl
2019-09-20dial/listen API change (#3000)Ryan Dahl
Previously: dial("tcp", "deno.land:80") Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" }) Similarly with listen().
2019-08-27feat: implement Addr interface (#2821)Bartek Iwańczuk
2019-07-06io: change Reader interface (#2591)Yoshiya Hinosawa
Instead of returning { nread: number, eof: bool }, read() returns EOF | number.
2019-05-23Fix concurrent accepts (#2403)Ryan Dahl
2019-05-02Re-enable networking unit tests (#2268)Ryan Dahl
The following tests were commented out in order to get this to go green : - bodyMultipartFormData - bodyURLEncodedFormData - fetchRequestInitStringBody - netConcurrentAccept - netListenAsyncIterator
2019-05-01Async iterator for listener (#2263)andy finch
2019-04-28Revert "recover: #1517 Kill all pending accepts when TCP listener is closed ↵Ryan Dahl
(#2224)" (#2239) Crashes while running wrk against js/deps/https/deno.land/std/http/http_bench.ts This reverts commit 972ac03858cc11e8b6bb759ee69640d17235580d.
2019-04-27recover: #1517 Kill all pending accepts when TCP listener is closed (#2224)Yusuke Sakurai
2019-04-21Fix eslint warnings (#2151)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
2019-03-09Migrate from tslint to eslint for linting (#1905)Kitson Kelly
2019-03-06Upgrade deno_std (#1892)Ryan Dahl
A major API change was that asserts are imported from testing/asserts.ts now rather than testing/mod.ts and assertEqual as renamed to assertEquals to conform to what is most common in JavaScript.
2019-02-12Add Deno global namespace (#1748)Kitson Kelly
Resolves #1705 This PR adds the Deno APIs as a global namespace named `Deno`. For backwards compatibility, the ability to `import * from "deno"` is preserved. I have tried to convert every test and internal code the references the module to use the namespace instead, but because I didn't break compatibility I am not sure. On the REPL, `deno` no longer exists, replaced only with `Deno` to align with the regular runtime. The runtime type library includes both the namespace and module. This means it duplicates the whole type information. When we remove the functionality from the runtime, it will be a one line change to the library generator to remove the module definition from the type library. I marked a `TODO` in a couple places where to remove the `"deno"` module, but there are additional places I know I didn't mark.
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2019-01-17Unflake test netConcurrentAccept (#1544)Kevin (Kun) "Kassimo" Qian
2019-01-15Kill all pending accepts when TCP listener is closed (#1517)Kevin (Kun) "Kassimo" Qian
2019-01-13Properly parse network addresses. (#1515)Ryan Dahl
2019-01-13Added rid to Conn interface (#1513)Joshua Flancer
2018-12-23Remove support for extensionless import (#1396)Ryan Dahl
2018-10-19Add missing copyrights (#1024)ztplz
2018-10-06Temporarily disable shutdown tests.Ryan Dahl
The fix for these wasn't immediately obvious - they seem to have been broken already but were skipped as reported in #919.
2018-10-05Remove race condition from netCloseReadSuccess testKevin (Kun) "Kassimo" Qian
2018-10-05Implement closeRead/closeWrite using TcpStream::shutdown (#903)Kevin (Kun) "Kassimo" Qian
2018-10-05Changed tools/lint.py to lint the entire js and tests directories. (#900)Chris Bystrek
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests.
2018-10-03First pass at support for TCP servers and clients. (#884)Ryan Dahl
Adds deno.listen(), deno.dial(), deno.Listener and deno.Conn.