From code review to TCP congestion control

LORY
5 min readFeb 18, 2024

The data transmission solution is not for error handling

The code review

“Bro, can you help to review this link again? I have fixed your comment ‘add some error handling here’” A teammate asked.

“Sure, let me take a look. could you explain why ‘smart_sleep’ could help handle the error”? I asked.

def smart_sleep(error_code):
tried = 1
max_try = 1024 # try 10 times
sleep_time = 500
while tried < max_try:
error_code = service_call(...)
if…

--

--

LORY

A channel which focusing on developer growth and self improvement