websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.55k stars 223 forks source link

no connection but cpu usage 100% #176

Closed planet0104 closed 6 years ago

planet0104 commented 6 years ago

default

sudo strace -p 9848

sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC, {96958, 148446123}) = 0 clock_gettime(CLOCK_MONOTONIC, {96958, 148467706}) = 0 sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC, {96958, 148514054}) = 0 clock_gettime(CLOCK_MONOTONIC, {96958, 148535757}) = 0 sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC, {96958, 148582423}) = 0 clock_gettime(CLOCK_MONOTONIC, {96958, 148604174}) = 0 sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC, {96958, 148650872}) = 0 clock_gettime(CLOCK_MONOTONIC, {96958, 148672600}) = 0 sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC, {96958, 148718958}) = 0 clock_gettime(CLOCK_MONOTONIC, {96958, 148740607}) = 0 sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC, {96958, 148787048}) = 0 clock_gettime(CLOCK_MONOTONIC, {96958, 148808618}) = 0 sendto(9, "\201~\1\0161\n1\342\220\2371216016071124425220415"..., 274, MSG_NOSIGNAL, NULL, 0) = -1 EAGAIN (Resource temporarily unavailable) clock_gettime(CLOCK_MONOTONIC^C) = -1 EAGAIN (Resource temporarily unavailable) strace: Process 9848 detached