File tree Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Expand file tree Collapse file tree 3 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl Backend {
48
48
let timeout = Duration :: from_millis ( 100 ) ;
49
49
let timeout = libc:: timeval {
50
50
tv_sec : 0 ,
51
- tv_usec : timeout. subsec_micros ( ) . into ( ) ,
51
+ tv_usec : timeout. subsec_micros ( ) . try_into ( ) . unwrap_or ( 0 ) ,
52
52
} ;
53
53
let listener = unsafe {
54
54
let fd = listener. into_raw_fd ( ) ;
Original file line number Diff line number Diff line change @@ -65,13 +65,16 @@ serial_test = "^3.1.1"
65
65
tiny_http = " ^0.12.0"
66
66
67
67
[features ]
68
- default = [" simd " ]
68
+ default = []
69
69
logs-debug = []
70
70
logs-trace = []
71
71
simd = [" kawa/simd" ]
72
72
splice = []
73
73
tolerant-http1-parser = [" kawa/tolerant-parsing" ]
74
74
unstable = []
75
75
76
+ [target .'cfg(target_arch = "x86_64")' .features ]
77
+ default = [" simd" ]
78
+
76
79
[badges ]
77
80
travis-ci = { repository = " sozu-proxy/sozu" }
Original file line number Diff line number Diff line change @@ -26,16 +26,3 @@ to force that connection to close if too many of those are lingering.
26
26
- ` lib/src/{http|https|tcp}.rs ` : proxies for HTTP, HTTPS and TCP
27
27
- ` lib/src/server.rs ` : the main event loop shared by all proxies
28
28
- ` lib/src/socket.rs ` : abstraction over normal sockets
29
-
30
- ## Build with or without SIMD
31
-
32
- SIMD stands for Single Instruction Multiple Data, and is used within the Kawa
33
- dependency to accelerate parsing.
34
-
35
- Kawa implements SIMD with the SSE instruction set, which is specific to intel.
36
- If you wish to use Sōzu on another architecture (MacOS for instance), you
37
- can disable this feature by doing:
38
-
39
- ```
40
- cargo build --no-default-features
41
- ```
You can’t perform that action at this time.
0 commit comments