mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 04:38:20 +00:00
It looks like Go has adopted 15s TCP keepalives as a default for _all_ TCP connections, which is quite dumb if you ask me. https://github.com/golang/go/issues/48622 For the HAP server's side, it degrades iOS battery life significantly by waking the device every 15s to respond to these packets. In the case as a normal MQTT client, it increases traffic on top of the 60s keepalive we've already set at the application layer. In both cases, the solution is to just explicitly disable TCP keepalives. Upgrade hap to the latest version that contains the fix brutella/hap#36.
25 lines
746 B
Modula-2
25 lines
746 B
Modula-2
module hapz2m
|
|
|
|
go 1.20
|
|
|
|
require (
|
|
github.com/brutella/hap v0.0.27-0.20230808074808-04622f35422f
|
|
github.com/eclipse/paho.mqtt.golang v1.4.2
|
|
)
|
|
|
|
require (
|
|
github.com/brutella/dnssd v1.2.7 // indirect
|
|
github.com/go-chi/chi v1.5.4 // indirect
|
|
github.com/gorilla/websocket v1.4.2 // indirect
|
|
github.com/miekg/dns v1.1.53 // indirect
|
|
github.com/tadglines/go-pkgs v0.0.0-20210623144937-b983b20f54f9 // indirect
|
|
github.com/xiam/to v0.0.0-20200126224905-d60d31e03561 // indirect
|
|
golang.org/x/crypto v0.8.0 // indirect
|
|
golang.org/x/mod v0.10.0 // indirect
|
|
golang.org/x/net v0.9.0 // indirect
|
|
golang.org/x/sync v0.1.0 // indirect
|
|
golang.org/x/sys v0.7.0 // indirect
|
|
golang.org/x/text v0.9.0 // indirect
|
|
golang.org/x/tools v0.8.0 // indirect
|
|
)
|