Add note to StreamReceiveSetEnabled that disable does not disable enqueued receives (#2565)

This commit is contained in:
Thad House 2022-03-21 11:08:23 -07:00 коммит произвёл GitHub
Родитель e6110b62cd
Коммит 6ffbc8c46b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -25,7 +25,7 @@ The function returns a [QUIC_STATUS](QUIC_STATUS.md). The app may use `QUIC_FAIL
# Remarks
**TODO**
This function always delegates to the worker queue, even if called from a quic worker thread. This matters if disabling receives, as there could be a receive in the queue before this call is processed, and that receive would still indicated to the app. To disable receives reliably, reject a receive by draining 0 bytes in the `QUIC_STREAM_EVENT_RECEIVE` callback.
# See Also