tarpc icon indicating copy to clipboard operation
tarpc copied to clipboard

Throughput example gives error on termination on windows

Open Boscop opened this issue 8 years ago • 1 comments

When I run the throughput example on Windows 8.1, it succeeds the first time but the next times I run it, I get ERROR:tarpc::future::server: While processing incoming connections: Either the application has not called WSAStartup, or WSAStartup failed. (os error 10093)

Full log:

D:\3rdparty\tarpc>cargo run --example throughput
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target\debug\examples\throughput.exe`
[...]done
TCP:   6701.878581070937MB/s
[...]done
TARPC: 2745.0392500455837MB/s

D:\3rdparty\tarpc>cargo run --example throughput
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target\debug\examples\throughput.exe`
[...]done
TCP:   7711.962606910509MB/s
[...]done
TARPC: 2919.0571906394052MB/s
ERROR:tarpc::future::server: While processing incoming connections: Either the a
pplication has not called WSAStartup, or WSAStartup failed. (os error 10093)

D:\3rdparty\tarpc>cargo run --example throughput
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target\debug\examples\throughput.exe`
[...]done
TCP:   10363.55056035657MB/s
[...]done
TARPC: 3259.7962020236696MB/s
ERROR:tarpc::future::server: While processing incoming connections: Either the a
pplication has not called WSAStartup, or WSAStartup failed. (os error 10093)

D:\3rdparty\tarpc>cargo run --example throughput
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target\debug\examples\throughput.exe`
[...]done
TCP:   8365.178330979292MB/s
[...]done
TARPC: 3025.2071283395167MB/s
ERROR:tarpc::future::server: While processing incoming connections: Either the a
pplication has not called WSAStartup, or WSAStartup failed. (os error 10093)

Boscop avatar Jun 25 '17 04:06 Boscop

Weird! Does this happen with any other examples?

tikue avatar Jun 26 '17 16:06 tikue