Skip to content
Success

Changes

Summary

  1. Add HttpPort to all distributed cache packets: http port always needs to be known, so is now included in all Distributed Cache UDP packets. (commit: 21689c9) (details)
Commit 21689c9199be84c2a6a9a6a75517441e617950ee by Mike Dawson
Add HttpPort to all distributed cache packets: http port always needs to be known, so is now included in all Distributed Cache UDP packets.
Fix NanoHttpdResponseAdapter : implementation was not setting headers.
Update UstadApp dependency injection: start EmbeddedHttpServer when it is created by DI to ensure it is impossible for it to be accessed by any other dependency without the port being known.
(commit: 21689c9)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/distributed/model/DistributedCachePong.kt (diff)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/distributed/model/DistributedCachePing.kt (diff)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/db/UstadDbDiscoveryListener.kt (diff)
The file was modifiedlib-cache/src/androidMain/kotlin/com/ustadmobile/libcache/distributed/DistributedCacheNsdAndroid.kt (diff)
The file was modifiedlib-cache/src/jvmTest/kotlin/com/ustadmobile/libcache/distributed/model/DistributedHashEntriesTest.kt (diff)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/distributed/model/DistributedCachePacket.kt (diff)
The file was modifiedlib-ihttp-nanohttpd/src/commonMain/kotlin/com/ustadmobile/ihttp/nanohttpd/NanoHttpdResponseAdapter.kt (diff)
The file was modifiedlib-cache/src/commonJvmMain/kotlin/com/ustadmobile/libcache/okhttp/DistributedCacheInterceptor.kt (diff)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/distributed/DistributedCacheNeighborDiscoveryListener.kt (diff)
The file was modifiedapp-android/src/main/java/com/ustadmobile/port/android/impl/UstadApp.kt (diff)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/distributed/DistributedCacheHashtable.kt (diff)
The file was modifiedlib-cache/src/commonMain/kotlin/com/ustadmobile/libcache/distributed/model/DistributedHashEntries.kt (diff)