File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ public class MockHttpServer {
42
42
43
43
let socketBootstrap = ServerBootstrap ( group: MultiThreadedEventLoopGroup ( numberOfThreads: System . coreCount) )
44
44
// Specify backlog and enable SO_REUSEADDR for the server itself
45
- // .serverChannelOption(.backlog, value: 256)
45
+ . serverChannelOption ( . backlog, value: 256 )
46
46
. serverChannelOption ( . socketOption( . so_reuseaddr) , value: 1 )
47
- // .childChannelOption(.maxMessagesPerRead, value: 1)
47
+ . childChannelOption ( . maxMessagesPerRead, value: 1 )
48
48
49
49
// Set the handlers that are applied to the accepted Channels
50
50
. childChannelInitializer { channel in
@@ -173,7 +173,7 @@ private final class HTTPHandler: ChannelInboundHandler {
173
173
var responseHeaders : [ ( String , String ) ] = [ ]
174
174
175
175
logger. trace (
176
- " Processing request for : \( requestHead) - \( String ( requestBody) ) "
176
+ " Processing request for : \( requestHead) - \( String ( buffer : requestBody) ) "
177
177
)
178
178
179
179
if requestHead. uri. hasSuffix ( " /next " ) {
You can’t perform that action at this time.
0 commit comments