You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fail when epoll transport is requested but unavailable
Rather than silently falling back to the NIO transport, client and
server constructors now throw an excpetion with info on how to fix the
problem when requesting to use the native epoll transport but no
implementation for the current platform is available on the classpath.
Copy file name to clipboardExpand all lines: src/aleph/http.clj
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@
46
46
| `max-initial-line-length` | the maximum characters that can be in the initial line of the request, defaults to `8192`
47
47
| `max-header-size` | the maximum characters that can be in a single header entry of a request, defaults to `8192`
48
48
| `max-chunk-size` | the maximum characters that can be in a single chunk of a streamed request, defaults to `16384`
49
-
| `epoll?` | if `true`, uses `epoll` when available, defaults to `false`
49
+
| `epoll?` | if `true`, uses `epoll`, defaults to `false`.
50
50
| `compression?` | when `true` enables http compression, defaults to `false`
51
51
| `compression-level` | optional compression level, `1` yields the fastest compression and `9` yields the best compression, defaults to `6`. When set, enables http content compression regardless of the `compression?` flag value
52
52
| `idle-timeout` | when set, forces keep-alive connections to be closed after an idle time, in milliseconds
@@ -115,7 +115,7 @@
115
115
| `response-buffer-size` | the amount of the response, in bytes, that is buffered before the request returns, defaults to `65536`. This does *not* represent the maximum size response that the client can handle (which is unbounded), and is only a means of maximizing performance.
116
116
| `keep-alive?` | if `true`, attempts to reuse connections for multiple requests, defaults to `true`.
117
117
| `idle-timeout` | when set, forces keep-alive connections to be closed after an idle time, in milliseconds.
118
-
| `epoll?` | if `true`, uses `epoll` when available, defaults to `false`
118
+
| `epoll?` | if `true`, uses `epoll`, defaults to `false`
119
119
| `raw-stream?` | if `true`, bodies of responses will not be buffered at all, and represented as Manifold streams of `io.netty.buffer.ByteBuf` objects rather than as an `InputStream`. This will minimize copying, but means that care must be taken with Netty's buffer reference counting. Only recommended for advanced users.
120
120
| `max-initial-line-length` | the maximum length of the initial line (e.g. HTTP/1.0 200 OK), defaults to `65536`
121
121
| `max-header-size` | the maximum characters that can be in a single header entry of a response, defaults to `65536`
@@ -216,7 +216,7 @@
216
216
| `max-frame-payload` | maximum allowable frame payload length, in bytes, defaults to `65536`.
217
217
| `max-frame-size` | maximum aggregate message size, in bytes, defaults to `1048576`.
218
218
| `bootstrap-transform` | an optional function that takes an `io.netty.bootstrap.Bootstrap` object and modifies it.
219
-
| `epoll?` | if `true`, uses `epoll` when available, defaults to `false`
219
+
| `epoll?` | if `true`, uses `epoll`, defaults to `false`
220
220
| `heartbeats` | optional configuration to send Ping frames to the server periodically (if the connection is idle), configuration keys are `:send-after-idle` (in milliseconds), `:payload` (optional, empty frame by default) and `:timeout` (optional, to close the connection if Pong is not received after specified timeout)."
Copy file name to clipboardExpand all lines: src/aleph/udp.clj
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,17 @@
34
34
| `socket-address` | a `java.net.SocketAddress` specifying both the port and interface to bind to.
35
35
| `broadcast?` | if true, all UDP datagrams are broadcast.
36
36
| `bootstrap-transform` | a function which takes the Netty `Bootstrap` object, and makes any desired changes before it's bound to a socket.
37
-
| `raw-stream?` | if true, the `:message` within each packet will be `io.netty.buffer.ByteBuf` objects rather than byte-arrays. This will minimize copying, but means that care must be taken with Netty's buffer reference counting. Only recommended for advanced users."
37
+
| `raw-stream?` | if true, the `:message` within each packet will be `io.netty.buffer.ByteBuf` objects rather than byte-arrays. This will minimize copying, but means that care must be taken with Netty's buffer reference counting. Only recommended for advanced users.
38
+
| `epoll?` | if `true`, uses `epoll`, defaults to `false`"
38
39
[{:keys [socket-address port broadcast? raw-stream? bootstrap-transform epoll?]
0 commit comments