CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 06:03:28 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/socketio/engine.io.git
etag: W/"47078faf465830381ceda99f91557402"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=ShVQoAbbt5UIPmR6QC4q%2BQhodXQZ016VTKrAnTHY1SVX2SwNwq7t038B1%2FLjtR4JiGzKdkJen1zUv9mtUK7E3rqQ78ChRmqebJU9FSyy7Nb87lQjlFiT2VmFMiA22aDxOqrNGVvMt8j0Q7rTaJJNc%2BpLIFe6a29RmgopU8L4SS1kGg7Qc4Lm9lj8WYvmx9IU6dVhkOJNLaij4LIBHOwVj0yTZzCRI73rmDzL%2FvfxaEP6AI5ZIbWQIwfZD9IIRo7Fjh0NKw62m4RofAyo7zx73w%3D%3D--PlZu427UcQpTkClB--iKYNIP0ys2MkXhql4RIV0A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.505459212.1753596207; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:03:27 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:03:27 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A034:872F4:B1E510:ED8E7A:6885C12F
fix: fix `websocket` and `webtransport` send callbacks (#699) · socketio/engine.io@fc21c4a · GitHub
Copy file name to clipboardExpand all lines: lib/transports-uws/polling.ts
Copy file name to clipboardExpand all lines: lib/transports-uws/websocket.ts
Copy file name to clipboardExpand all lines: lib/transports/websocket.ts
Copy file name to clipboardExpand all lines: lib/transports/webtransport.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 565
Commit fc21c4a
authored
With the `websocket` transport, the callbacks which indicate that the
packets are actually written were not properly called.
Example:
```js
socket.send("hello", () => {
// the message has been written to the underlying transport
});
```
The bug was caused by the `websocket` transport (and `webtransport` as
well) having its `supportsFraming` property set to `true`, despite
having been changed in [1] to emit a single `drain` event for each
batch of messages written to the transport like the `polling` transport
always did. Note that although [1] is partially reverted in [2], the
new `drain` event behavior is preserved as called out in that commit's
message.
The `supportsFraming` attribute was introduced in [3] (amended by [4])
as a way to distinguish transports that emit one `drain` per message
from those that emit one `drain` per batch. Since the delivery of
`send` callbacks depends on matching `drain` events with
`transport.send` calls, that distinction is vital to correct behavior.
However, now that all transports have converged to "one `drain` per
batch" behavior, this `supportsFraming` property can be retired (and
the code for calling callbacks simplified).
[1]: #618
[2]: a65a047
[3]: #130
[4]: #132
Related: #698
1 parent 79ea52d commit fc21c4aCopy full SHA for fc21c4a
File tree
Expand file treeCollapse file tree
9 files changed
+41
-61
lines changedFilter options
- lib
- transports-uws
- transports
- test
Expand file treeCollapse file tree
9 files changed
+41
-61
lines changed+14-24Lines changed: 14 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
| 18 | + | |
17 | 19 |
| |
18 | 20 |
| |
19 | 21 |
| |
| |||
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
30 |
| - | |
31 |
| - | |
| 32 | + | |
| 33 | + | |
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| |||
395 | 397 |
| |
396 | 398 |
| |
397 | 399 |
| |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 |
| - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
411 | 405 |
| |
412 | 406 |
| |
413 | 407 |
| |
| |||
428 | 422 |
| |
429 | 423 |
| |
430 | 424 |
| |
431 |
| - | |
| 425 | + | |
432 | 426 |
| |
433 | 427 |
| |
434 | 428 |
| |
| |||
440 | 434 |
| |
441 | 435 |
| |
442 | 436 |
| |
443 |
| - | |
| 437 | + | |
444 | 438 |
| |
445 | 439 |
| |
446 | 440 |
| |
| |||
459 | 453 |
| |
460 | 454 |
| |
461 | 455 |
| |
462 |
| - | |
| 456 | + | |
463 | 457 |
| |
464 | 458 |
| |
465 | 459 |
| |
| |||
485 | 479 |
| |
486 | 480 |
| |
487 | 481 |
| |
488 |
| - | |
| 482 | + | |
489 | 483 |
| |
490 | 484 |
| |
491 | 485 |
| |
| |||
507 | 501 |
| |
508 | 502 |
| |
509 | 503 |
| |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
| 504 | + | |
515 | 505 |
| |
516 | 506 |
| |
517 | 507 |
| |
|
-5Lines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 | 140 |
| |
146 | 141 |
| |
147 | 142 |
| |
|
lib/transports-uws/polling.ts
Copy file name to clipboardExpand all lines: lib/transports-uws/polling.ts-4Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 | 45 |
| |
50 | 46 |
| |
51 | 47 |
| |
|
lib/transports-uws/websocket.ts
Copy file name to clipboardExpand all lines: lib/transports-uws/websocket.ts-9Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 | 40 |
| |
50 | 41 |
| |
51 | 42 |
| |
|
-4Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 | 45 |
| |
50 | 46 |
| |
51 | 47 |
| |
|
lib/transports/websocket.ts
Copy file name to clipboardExpand all lines: lib/transports/websocket.ts-9Lines changed: 0 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 | 48 |
| |
58 | 49 |
| |
59 | 50 |
| |
|
lib/transports/webtransport.ts
Copy file name to clipboardExpand all lines: lib/transports/webtransport.ts-4Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 | 47 |
| |
52 | 48 |
| |
53 | 49 |
| |
|
+12-2Lines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2759 | 2759 |
| |
2760 | 2760 |
| |
2761 | 2761 |
| |
2762 |
| - | |
| 2762 | + | |
2763 | 2763 |
| |
2764 |
| - | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
2765 | 2767 |
| |
2766 | 2768 |
| |
2767 | 2769 |
| |
2768 | 2770 |
| |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
2769 | 2779 |
| |
2770 | 2780 |
| |
2771 | 2781 |
| |
|
+15Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
376 | 391 |
| |
377 | 392 |
| |
378 | 393 |
| |
|
You can’t perform that action at this time.
0 commit comments