1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
Commit graph

2900 commits

Author SHA1 Message Date
Ryan Dahl
53b6356ec5 Correct tokio_util::block_on() and op_fetch_module_meta_data
op_fetch_module_meta_data is an op that is used by the TypeScript
compiler. TypeScript requires this op to be sync. However the
implementation of the op does things on the event loop (like fetching
HTTP resources).

In certain situations this can lead to deadlocks. The runtime's thread
pool can be filled with ops waiting on the result of
op_fetch_module_meta_data. The runtime has a maximum number of
threads it can use (the number of logical CPUs on the system).

This patch changes tokio_util::block_on to launch a new Tokio runtime
for evaluating the future, thus bipassing the max-thread problem.

This is only an issue in op_fetch_module_meta_data. Other synchronous
ops are truly synchornous, not interacting with the event loop.  TODO
comments are added to direct future development.
2019-05-29 07:53:39 -04:00
Bardia Rastin
5b37b560fb add "run" to file server alias (denoland/deno_std#460)
Original: 4078e9b24d
2019-05-27 17:56:10 -04:00
Ryan Dahl
3c355c2b32
Add 'brew install deno' to homepage (#2412) 2019-05-27 14:20:32 -04:00
Bartek Iwańczuk
824542e61e chore: Port Python tests to unittest (#2408) 2019-05-27 09:27:55 -04:00
Adam Conrad
9fd4096235 add EventTarget implementation (#2377) 2019-05-27 09:20:34 -04:00
Axetroy
ad3de86604 rename strings/strings.ts to strings/mod.ts (denoland/deno_std#449)
Original: 2f003fa35c
2019-05-27 02:58:31 +03:00
Bartek Iwańczuk
73ac5f89f0 add module and line no for Rust logger (#2409) 2019-05-25 19:23:47 +03:00
Vincent LE GOFF
8d94f70bef http: add ParseHTTPVersion (denoland/deno_std#452)
Original: 438178541e
2019-05-25 19:22:30 +03:00
Axetroy
74498f1e0c Prettier: support for specified files and glob mode (denoland/deno_std#438)
Original: 1083db10ed
2019-05-25 17:17:56 +03:00
Andy Hayden
62c377fc19 Add brew install deno to manual (#2407) 2019-05-24 22:22:16 +03:00
Vincent LE GOFF
aed65ff333 Add encoding/csv (denoland/deno_std#432)
Original: c8a7dcdcd0
2019-05-24 16:33:42 +03:00
axetroy
31db7c4dba rename bytes/bytes.ts to bytes/mod.ts
Original: 015cf3e02d
2019-05-24 15:40:32 +03:00
axetroy
c6505c5de6 remove function prefix of bytes module
Original: a457942678
2019-05-24 15:40:32 +03:00
Axetroy
4ab0e0e918 Enable bytes tests and add bytesRepeat (denoland/deno_std#446)
Original: bd46d60ded
2019-05-24 14:44:13 +03:00
ztplz
86684799c4 typo (#2366) 2019-05-24 14:36:50 +03:00
Steven
ccdab61708 Remove prefix $ and > from manual (#2404) 2019-05-24 03:37:34 +03:00
Bartek Iwańczuk
1105982586 re-fix permissions for dial and listen (#2400)
Closes #2397
2019-05-23 23:47:55 +03:00
Ryan Dahl
f92af3576a
Improve CLI help (#2388) 2019-05-23 21:57:44 +03:00
Vincent LE GOFF
0803912c7f TOML: Move to encoding dir (denoland/deno_std#435)
Original: 7a722ceffc
2019-05-23 21:48:54 +03:00
Ryan Dahl
583a646be7
Fix concurrent accepts (#2403) 2019-05-23 21:22:52 +03:00
Ryan Dahl
2952fb5405
Rename --allow-high-precision to --allow-hrtime (#2398) 2019-05-23 19:28:29 +03:00
Stoyan Dimkov
73f7be6ae0 Fix http README examples (denoland/deno_std#440)
Some cosmetic fixes to the provided examples in the http README:
- Ensure they're all actually runnable
- Use clear variable names
- Add usage of Cookie interface
Original: b9b25b8b17
2019-05-23 19:05:00 +03:00
Vincent LE GOFF
632fbd7734 http: fix content-length checking (denoland/deno_std#437)
Original: ce4e3ccdc3
2019-05-23 18:59:34 +03:00
champ
1386b6ead5 Fix examples in manual (#2396) 2019-05-23 10:47:11 +03:00
Shubhadeep Das
b7082f1640 Added isGlob function (denoland/deno_std#433)
Original: 94dcb2779b
2019-05-23 10:23:31 +03:00
Bert Belder
7d03a63ded
Revert "Fix permissions for dial and listen (#2373)"
This reverts commit 7219787894.
2019-05-22 19:47:15 -07:00
Aurélien Bertron
a4346a3ac9 http: send an empty response body if none is provided (denoland/deno_std#429)
Fixes: denoland/deno_std#402

Original: e00e3fe33a
2019-05-22 19:33:17 -07:00
Vincent LE GOFF
3cfc1244d8 http: make server handle bad client requests properly (denoland/deno_std#419)
Original: 7620fe1a82
2019-05-22 16:28:03 -07:00
Yuqing Chen
e2debab359 fix(fileserver): wrong url href of displayed files (denoland/deno_std#426)
Original: be6cd35cbf
2019-05-22 15:58:20 -07:00
Vincent LE GOFF
de713ea871 http: delete conn parameter in readRequest (denoland/deno_std#430)
To bring it inline with Go API
Original: 209183e248
2019-05-22 09:30:10 -04:00
Bartek Iwańczuk
880265275f Use tagged version of prettier in CLI (#2387) 2019-05-21 15:39:50 -04:00
Vincent LE GOFF
b9ce3a6453 Rename //multipart/multipart.ts to //mime/multipart.ts (denoland/deno_std#420)
Original: aad0896346
2019-05-21 09:36:12 -04:00
Axetroy
915b4f520b feat(prettier): output to stdout instead of write file by default unless specified --write flag (denoland/deno_std#332)
Original: 434007b8ab
2019-05-21 08:23:23 -04:00
Ryan Dahl
7c4e973611 Bump v0.6.0 (denoland/deno_std#423)
Original: 47134db9f2
2019-05-21 02:44:36 -04:00
Ryan Dahl
0e89ca7b70
website: update http example (#2367) 2019-05-21 00:31:57 -04:00
Bert Belder
16e52ee4b0 Move collectUint8Arrays() to util/async.ts, clean up, fix bugs, add tests
Original: dcad420b92
2019-05-20 17:53:01 -07:00
Bert Belder
79c88a46bb http: remove unnecessary await in listenAndServe()
Original: d1971241d9
2019-05-20 17:44:58 -07:00
Ryan Dahl
22feb74ba1 v0.6.0 2019-05-20 15:22:08 -04:00
Ryan Dahl
9620b20ede Adjust core/README.md text 2019-05-20 15:22:08 -04:00
Ryan Dahl
4a52fd7b61 Upgrade deno_std (#2378) 2019-05-20 10:42:41 -07:00
Yoshitaka Terazawa
a58d794373 chore(readme): add README.md for ws (denoland/deno_std#417)
Original: 301c12d9d2
2019-05-20 09:22:15 -04:00
Ryan Dahl
a295bb0d42 Clean up HTTP async iterator code (denoland/deno_std#411)
Original: 68faf32f72
2019-05-20 09:17:26 -04:00
Yusuke Sakurai
227d92e046 fix: add exnext lib to tsconfig.json (denoland/deno_std#416)
Original: 0daa693d68
2019-05-18 14:46:12 -04:00
Vincent LE GOFF
ef4fd3d4ca Fix denoland/deno_std#409 handle multipart header in mime reader (denoland/deno_std#415)
Original: 92c26cc331
2019-05-18 14:05:27 -04:00
Bartek Iwańczuk
7219787894 Fix permissions for dial and listen (#2373) 2019-05-17 14:50:53 -04:00
chiefbiiko
00f6fa46b3 Add crypto.getRandomValues() (#2327) 2019-05-17 14:03:01 -04:00
Bartek Iwańczuk
7f6549532c Don't print new line if progress bar was not used (#2374) 2019-05-17 12:35:29 -04:00
Stephan Renatus
e3e9021d23 website: fix workers benchmark links (#2370)
Signed-off-by: Stephan Renatus <srenatus@chef.io>
2019-05-17 07:15:46 -04:00
JaePil Jung
c3a30dd3c3 Delete unnecessary console.log in test code (#2368) 2019-05-17 02:49:20 -04:00
Bert Belder
3ff240b963
third_party: add rust crate 'serde_derive' 2019-05-16 20:51:47 -07:00