У нас вы можете посмотреть бесплатно Asynchronous TCP/IP, Part 9 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This series: Live coding to https://github.com/StephenClearyExamp... Developing an asynchronous TCP/IP server and client. Discussing TCP/IP protocol design. Discussing some harder concepts in async/await. Part 9: Learning about half-open TCP connections and keepalive messages. Learning about sending data (keepalive messages) to detect half-open connections. Reviewing some wrong ways to detect half-open connections. Learning about less ideal ways to detect half-open connections. Adding keepalive messages to our protocol. Reading and ignoring keepalive messages. Using Clumsy to cause half-open connections. Note: The parsing code still has a bug introduced in Part 3: it can call AdvanceTo multiple times on the same buffer if it has multiple messages. This bug was fixed after this series: https://github.com/StephenClearyExamp... Code changes: https://github.com/StephenClearyExamp... Resources used in this video: Detection of Half-Open Connections: https://blog.stephencleary.com/2009/0... RFC 1122, Section 4.2.3.6: https://datatracker.ietf.org/doc/html... Clumsy, an application for creating network errors: https://jagt.github.io/clumsy/ Clumsy filter expressions: https://reqrypt.org/windivert-doc.htm... Clumsy filter tcp fields: https://reqrypt.org/windivert-doc.htm... 0:00 Intro 0:38 We're missing keepalives 2:17 About TCP connections (handshakes) 4:10 Half-closed TCP connections 6:44 TCP sends no packets when idle 9:45 Benefits of idle connections 10:35 Result: each side only believes it is connected 12:15 TCP connections survive network outages 13:00 Problem: half-open TCP connections 15:45 Sending data to detect half-open TCP connections 16:13 Wrong approaches to detecting half-open TCP connections 17:49 Detecting half-open TCP connections with keepalive messages 19:59 OK but not ideal approaches to detecting half-open TCP connections 21:15 OK solution: TCP keepalive packets 25:04 OK solution: idle timeouts 28:40 Story about hacky half-open detection 32:32 Defining keepalives 37:36 Reading keepalive messages 46:11 Demonstrating half-open connections with Clumsy 55:16 Note: Windows may close connections when network is unplugged 57:33 Summary 58:18 Outtro