about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-04-19 21:39:30 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-04-19 21:39:30 -0700
commit5bfb260cf87b4907f885877d5ac4e819edb970db (patch)
tree47e32efe5943f689e925561b06541e9778ee4fe3 /src/rustllvm/RustWrapper.cpp
parent7b6e7ebe73b5f046faa81406ed58866364f6cfee (diff)
downloadrust-5bfb260cf87b4907f885877d5ac4e819edb970db.tar.gz
rust-5bfb260cf87b4907f885877d5ac4e819edb970db.zip
rustuv: Fix a tcp connect timeout bug on windows
When a uv_tcp_t is closed in libuv, it will still invoke the pending connect_cb,
and I thought that it would always call it with ECANCELED, but it turns out that
sometimes we'll get a different error code instead. Handle this case by checking
to see if the request's data is NULL and bail out if so (the timeout expired).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions