summaryrefslogtreecommitdiffhomepage
path: root/test/test_http_header.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-08-07 17:57:06 +0300
committerMax Romanov <max.romanov@nginx.com>2018-08-07 17:57:06 +0300
commit9015b8b25db03be892f1d1344ae75b8318d398df (patch)
tree746e55e58e86a0f49976e39b3c470a7852414b3f /test/test_http_header.py
parent257283cc389a8f453cbf4ebd028af79e9b23258b (diff)
downloadunit-9015b8b25db03be892f1d1344ae75b8318d398df.tar.gz
unit-9015b8b25db03be892f1d1344ae75b8318d398df.tar.bz2
Improved 'invalid file descriptor' diagnostic.
Unit router process may send mmap file decritptor to the application process for further information exchange. During this process there may be various errors, which should be described in application error log. If file descriptor cannot be properly transferred with 'new mmap' message, fd variable will be assigned to -1 and further syscalls using this file descriptor will fail. For 'new port' message fd is checked in the same way. This commit adds early 'invalid file descriptor' diagnostic and write corresponding message to error log. Found by Coverity (CID 308515).
Diffstat (limited to 'test/test_http_header.py')
0 files changed, 0 insertions, 0 deletions