Mercurial > hg > nginx-quic
view src/os/win32/ngx_stat.c @ 8850:e56a05d6dbd1 quic
QUIC: fixed resetting stream wev->ready flag.
Previously, the flag could be reset after send_chain() with a limit, even
though there was room for more data. The application then started waiting for
a write event notification, which never happened.
Now the wev->ready flag is only reset when flow control is exhausted.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 09 Feb 2022 14:49:05 +0300 |
parents | d620f497c50f |
children |
line wrap: on
line source
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> int ngx_file_type(char *file, ngx_file_info_t *sb) { sb->dwFileAttributes = GetFileAttributes(file); if (sb->dwFileAttributes == INVALID_FILE_ATTRIBUTES) { return -1; } return 0; } /* int ngx_stat(char *file, ngx_stat_t *sb) { *sb = GetFileAttributes(file); if (*sb == INVALID_FILE_ATTRIBUTES) { return -1; } return 0; } */