• S
    Handle overflow case of rate limiter's paramters · f62fbd2c
    sdong 提交于
    Summary: When rate_bytes_per_sec * refill_period_us_ overflows, the actual limited rate is very low. Handle this case so the rate will be large.
    
    Test Plan: Add a unit test for it.
    
    Reviewers: IslamAbdelRahman, andrewkr
    
    Reviewed By: andrewkr
    
    Subscribers: yiwu, lightmark, leveldb, andrewkr, dhruba
    
    Differential Revision: https://reviews.facebook.net/D58929
    f62fbd2c
port_posix.h 4.6 KB