Commit efb4646
committed
tls_wrap: use DoTryWrite()
Use `DoTryWrite()` to write data to the underlying socket.
This does probably not make any difference in performance
because the callback is still deferred (for now), but
brings TLSWrap in line with other things that write to
streams.
PR-URL: #18676
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 7fb72a5 commit efb4646Copy full SHA for efb4646
File tree
Expand file treeCollapse file tree
2 files changed
+42
-31
lines changedOpen diff view settings
Filter options
- src
- test/async-hooks
Expand file treeCollapse file tree
2 files changed
+42
-31
lines changedOpen diff view settings
Collapse file
+19-7Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
287 | 287 | |
288 | 288 | |
289 | 289 | |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
290 | 306 | |
291 | 307 | |
292 | 308 | |
293 | 309 | |
294 | 310 | |
295 | 311 | |
296 | 312 | |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
| 313 | + |
301 | 314 | |
302 | 315 | |
303 | 316 | |
| ||
310 | 323 | |
311 | 324 | |
312 | 325 | |
313 | | - |
314 | | - |
315 | | - |
| 326 | + |
| 327 | + |
316 | 328 | |
317 | 329 | |
318 | 330 | |
|
Collapse file
test/async-hooks/test-writewrap.js
Copy file name to clipboard+23-24Lines changed: 23 additions & 24 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | | - |
7 | 4 | |
8 | 5 | |
9 | | - |
10 | 6 | |
11 | | - |
| 7 | + |
12 | 8 | |
13 | 9 | |
14 | 10 | |
15 | 11 | |
16 | 12 | |
17 | 13 | |
18 | 14 | |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
| 15 | + |
24 | 16 | |
25 | | - |
| 17 | + |
26 | 18 | |
27 | 19 | |
28 | 20 | |
| ||
32 | 24 | |
33 | 25 | |
34 | 26 | |
35 | | - |
36 | | - |
37 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
38 | 30 | |
39 | 31 | |
40 | 32 | |
41 | 33 | |
42 | 34 | |
43 | 35 | |
44 | | - |
| 36 | + |
| 37 | + |
45 | 38 | |
46 | 39 | |
47 | 40 | |
| ||
53 | 46 | |
54 | 47 | |
55 | 48 | |
56 | | - |
| 49 | + |
| 50 | + |
57 | 51 | |
58 | 52 | |
59 | 53 | |
60 | | - |
| 54 | + |
61 | 55 | |
62 | 56 | |
63 | | - |
| 57 | + |
64 | 58 | |
65 | 59 | |
66 | 60 | |
67 | | - |
| 61 | + |
68 | 62 | |
69 | 63 | |
70 | 64 | |
71 | 65 | |
72 | | - |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
73 | 72 | |
74 | | - |
| 73 | + |
75 | 74 | |
76 | 75 | |
77 | 76 | |
78 | 77 | |
79 | 78 | |
80 | | - |
| 79 | + |
81 | 80 | |
82 | 81 | |
83 | 82 | |
84 | | - |
| 83 | + |
85 | 84 | |
86 | 85 | |
87 | 86 | |
88 | 87 | |
89 | 88 | |
90 | 89 | |
91 | 90 | |
92 | | - |
| 91 | + |
93 | 92 | |
0 commit comments