Преглед изворни кода

More debugging, add weird networking info to README

tags/v0.3.0
Chris Smith пре 5 година
родитељ
комит
ca4397505b
3 измењених фајлова са 19 додато и 0 уклоњено
  1. 1
    0
      CHANGELOG
  2. 17
    0
      README.md
  3. 1
    0
      src/main/kotlin/com/dmdirc/ktirc/io/MessageHandler.kt

+ 1
- 0
CHANGELOG Прегледај датотеку

8
     * Added status field to ServerState
8
     * Added status field to ServerState
9
     * ServerConnected event is emitted as soon as the socket is connected
9
     * ServerConnected event is emitted as soon as the socket is connected
10
     * ServerReady event is emitted after logging in, negotiating, etc
10
     * ServerReady event is emitted after logging in, negotiating, etc
11
+  * Added extra debugging to show what type of events are being dispatched
11
   * (Internal) Event handlers can now return more events to emit
12
   * (Internal) Event handlers can now return more events to emit
12
 
13
 
13
 v0.2.1
14
 v0.2.1

+ 17
- 0
README.md Прегледај датотеку

41
 }
41
 }
42
 ```
42
 ```
43
 
43
 
44
+## Known issues / FAQ
45
+
46
+### `java.lang.IllegalStateException: Check failed` when connecting to some servers
47
+
48
+This happens when the IRC server requests an optional client certificate (for use
49
+in SASL auth, usually). At present there is no support for client certificates in
50
+the networking library used by KtIrc. This is tracked upstream in
51
+[ktor#641](https://github.com/ktorio/ktor/issues/641). There is no workaround
52
+other than using an insecure connection.
53
+
54
+### KtIrc connects over IPv4 even when host has IPv6
55
+
56
+This is an issue with the Java standard library. You can change its behaviour by
57
+defining the system property `java.net.preferIPv6Addresses` to `true`, e.g. by
58
+running Java with `-Djava.net.preferIPv6Addresses=true` or calling
59
+`System.setProperty("java.net.preferIPv6Addresses","true");` in code. 
60
+
44
 ## Contributing
61
 ## Contributing
45
 
62
 
46
 Contributing is welcomed and encouraged! Please try to add unit tests for new features,
63
 Contributing is welcomed and encouraged! Please try to add unit tests for new features,

+ 1
- 0
src/main/kotlin/com/dmdirc/ktirc/io/MessageHandler.kt Прегледај датотеку

19
     }
19
     }
20
 
20
 
21
     fun emitEvent(ircClient: IrcClient, ircEvent: IrcEvent) {
21
     fun emitEvent(ircClient: IrcClient, ircEvent: IrcEvent) {
22
+        log.fine { "Dispatching event of type ${ircEvent::class}" }
22
         handlers.forEach { handler ->
23
         handlers.forEach { handler ->
23
             handler.processEvent(ircClient, ircEvent).forEach {
24
             handler.processEvent(ircClient, ircEvent).forEach {
24
                 emitEvent(ircClient, it)
25
                 emitEvent(ircClient, it)

Loading…
Откажи
Сачувај