jdev - 2022-04-22


  1. antranigv has joined
  2. Zash has left
  3. Zash has joined
  4. nephele has joined
  5. antranigv has left
  6. nephele has left
  7. nephele has joined
  8. al has left
  9. debacle has left
  10. nephele has left
  11. dezant has left
  12. thomaslewis has joined
  13. dezant has joined
  14. abdullahi has left
  15. abdullahi has joined
  16. al has joined
  17. Ingolf has joined
  18. Ingolf has left
  19. al has left
  20. al has joined
  21. Yagizа has joined
  22. thomaslewis has left
  23. xnamed has left
  24. thomaslewis has joined
  25. dezant has left
  26. dezant has joined
  27. al has left
  28. Sam has joined
  29. dezant has left
  30. dezant has joined
  31. Sam has left
  32. raghavgururajan has joined
  33. thomaslewis has left
  34. al has joined
  35. Ingolf has joined
  36. atomicwatch has left
  37. COM8 has joined
  38. COM8 has left
  39. COM8 has joined
  40. COM8 has left
  41. atomicwatch has joined
  42. pasdesushi has joined
  43. thomaslewis has joined
  44. Ingolf has left
  45. thomaslewis has left
  46. thomaslewis has joined
  47. thomaslewis has left
  48. Ingolf has joined
  49. wurstsalat has left
  50. COM8 has joined
  51. COM8 has left
  52. wurstsalat has joined
  53. msavoritias has joined
  54. Laura has joined
  55. marc0s has left
  56. marc0s has joined
  57. antranigv has joined
  58. Byt has joined
  59. Byt has left
  60. Byt has joined
  61. jgart has left
  62. Byt has left
  63. marc0s has left
  64. marc0s has joined
  65. thomaslewis has joined
  66. raghavgururajan has left
  67. Laura has left
  68. thomaslewis has left
  69. thomaslewis has joined
  70. thomaslewis has left
  71. thomaslewis has joined
  72. al has left
  73. thomaslewis has left
  74. msavoritias has left
  75. msavoritias has joined
  76. marc has joined
  77. debacle has joined
  78. Laura has joined
  79. pulkomandy has left
  80. adx has joined
  81. Alex has left
  82. Alex has joined
  83. raghavgururajan has joined
  84. Alastair Hogge has left
  85. goffi has joined
  86. atomicwatch has left
  87. emus has joined
  88. raghavgururajan has left
  89. raghavgururajan has joined
  90. marc has left
  91. marc has joined
  92. nephele has joined
  93. junaid has left
  94. junaid has joined
  95. atomicwatch has joined
  96. nephele has left
  97. Laura has left
  98. Laura has joined
  99. marc has left
  100. pasdesushi has left
  101. norayr has left
  102. norayr has joined
  103. Kev has joined
  104. Kev has left
  105. Kev has joined
  106. pasdesushi has joined
  107. xnamed has joined
  108. Millesimus has left
  109. antranigv has left
  110. antranigv has joined
  111. norayr has left
  112. norayr has joined
  113. Millesimus has joined
  114. Ingolf has left
  115. debacle has left
  116. stuart.j.mackintosh has left
  117. lovetox has left
  118. stuart.j.mackintosh has joined
  119. Ingolf has joined
  120. nephele has joined
  121. lovetox has joined
  122. Laura has left
  123. Laura has joined
  124. marc has joined
  125. antranigv has left
  126. antranigv has joined
  127. nephele has left
  128. xnamed has left
  129. xnamed has joined
  130. larma has joined
  131. larma has left
  132. xnamed has left
  133. xnamed has joined
  134. antranigv has left
  135. atomicwatch has left
  136. antranigv has joined
  137. xnamed has left
  138. Laura has left
  139. xnamed has joined
  140. antranigv has left
  141. antranigv has joined
  142. Laura has joined
  143. Ingolf has left
  144. nephele has joined
  145. marc0s has left
  146. marc0s has joined
  147. nephele has left
  148. nephele has joined
  149. Ingolf has joined
  150. PapaTutuWawa has joined
  151. nephele has left
  152. atomicwatch has joined
  153. nephele has joined
  154. xnamed has left
  155. pulkomandy has joined
  156. PapaTutuWawa Quick question: Due to reasons I had to implement my own XMPP library for my mobile XMPP client and it works great. However, after some time (unsure about the exact time), my connection just silently stops working and I cannot send or receive data. I don't receive any stream errors; it just stops. This happens although I send pings either by requesting an XEP-0198 ack or by just sending a whitespace ping every 5 minutes. Is there anything else I need to do to stop this from happening?
  157. antranigv has left
  158. Ge0rG PapaTutuWawa: what platform is your moblie client running on?
  159. PapaTutuWawa Android. But the thing is that the system is not killing the app as I keep viewing logs on my PC and I log every ping I send
  160. Zash Obscure socket timeout? What does the server logs say?
  161. antranigv has joined
  162. jubalh has left
  163. Laura has left
  164. nephele has left
  165. Ge0rG PapaTutuWawa: did you request an exception from battery optimizations?
  166. Ge0rG PapaTutuWawa: when you connect the device via USB that might also change power saving behavior
  167. PapaTutuWawa Ge0rG: I didn't because I thought that having no exception would just kill the foreground service entirely, which I would notice
  168. PapaTutuWawa Zash: I'll have to timeout again, but I think that my prosody just said that the connection timed out
  169. Ge0rG PapaTutuWawa: IIRC it will just freeze the app instead
  170. flow PapaTutuWawa, do you receive pongs to your xmpp pings?
  171. PapaTutuWawa That would still be weird as I can still see the service trying to send a ping to the server even after no data can come in or go out
  172. PapaTutuWawa flow: When I used only 0198 pings, then after some point: no. But until then I did. But I still think that 2h at max until I have to reconnect is a bit short, or am I mistaken?
  173. marc0s has left
  174. marc0s has joined
  175. flow PapaTutuWawa, i suspect your TCP connection became stale than, could be due to various reasions
  176. flow I believe modern Android's even suspend TCP connections of more-or-less inactive non-foreground apps, but it could be also just a middlebox or dozen other things that causes the tcp connection to become stale
  177. lovetox has left
  178. PapaTutuWawa flow: I didn't know that. I'll try it then
  179. flow PapaTutuWawa, try what?
  180. PapaTutuWawa Setting a battery optimization exception for my app if it's true that Android suspends TCP connections for inactive apps
  181. PapaTutuWawa Sorry for being unclear😅️
  182. flow PapaTutuWawa, I doubt that this alone will help
  183. flow at least for the latest android versions, which basically force you to use a foreground service for long-lived TCP connections like XMPP uses
  184. flow besides that, my recommendation for years has been to act on CONNECTIVITY_CHANGED broadcasts from Android, and have a mechansim to swiftly check if the connection is still alive, based on xep199 pings with a low timeout (say less than 30, 20, or 15 seconds)
  185. flow if that check fails, forcefully tear down the XMPP connection and restablish it, ideally using stream mangement
  186. pulkomandy has left
  187. lovetox has joined
  188. antranigv has left
  189. Ingolf has left
  190. Sam has joined
  191. Sam has left
  192. Sam has joined
  193. Sam has left
  194. Sam has joined
  195. mh has left
  196. PapaTutuWawa It seems like my prosody closes the connection with a "timeout during receiving"
  197. mh has joined
  198. Laura has joined
  199. nephele has joined
  200. nephele has left
  201. nephele has joined
  202. nephele has left
  203. marc0s has left
  204. marc0s has joined
  205. marc0s has left
  206. marc0s has joined
  207. kikuchiyo has left
  208. dezant has left
  209. marc0s has left
  210. marc0s has joined
  211. tails has joined
  212. kikuchiyo has joined
  213. nephele has joined
  214. nephele has left
  215. Laura has left
  216. Laura has joined
  217. marc0s has left
  218. marc0s has joined
  219. antranigv has joined
  220. nephele has joined
  221. nephele has left
  222. Maranda has left
  223. Mjolnir Archon has left
  224. abdullahi has left
  225. abdullahi has joined
  226. antranigv has left
  227. dezant has joined
  228. nephele has joined
  229. nephele has left
  230. xnamed has joined
  231. Laura has left
  232. nephele has joined
  233. nephele has left
  234. Laura has joined
  235. larma has joined
  236. nephele has joined
  237. norayr has left
  238. norayr has joined
  239. xnamed has left
  240. Millesimus has left
  241. xnamed has joined
  242. nephele has left
  243. emus has left
  244. emus has joined
  245. xnamed has left
  246. Mjolnir Archon has joined
  247. Maranda has joined
  248. Ingolf has joined
  249. xnamed has joined
  250. nephele has joined
  251. nephele has left
  252. nephele has joined
  253. nephele has left
  254. antranigv has joined
  255. Millesimus has joined
  256. nephele has joined
  257. antranigv has left
  258. nephele has left
  259. Matrix Traveler (bot) has left
  260. homebeach has left
  261. homebeach has joined
  262. Matrix Traveler (bot) has joined
  263. marc0s has left
  264. marc0s has joined
  265. Laura has left
  266. debacle has joined
  267. antranigv has joined
  268. Ingolf has left
  269. antranigv has left
  270. pasdesushi has left
  271. marc0s has left
  272. marc0s has joined
  273. Laura has joined
  274. antranigv has joined
  275. thomaslewis has joined
  276. nephele has joined
  277. thomaslewis has left
  278. emus has left
  279. nephele has left
  280. nephele has joined
  281. jgart has joined
  282. nephele has left
  283. marc0s has left
  284. marc0s has joined
  285. jubalh has joined
  286. edhelas has left
  287. Laura has left
  288. Matrix Traveler (bot) has left
  289. homebeach has left
  290. homebeach has joined
  291. Matrix Traveler (bot) has joined
  292. emus has joined
  293. Laura has joined
  294. pulkomandy has joined
  295. marc0s has left
  296. marc0s has joined
  297. marc0s has left
  298. marc0s has joined
  299. Laura has left
  300. nephele has joined
  301. Laura has joined
  302. edhelas has joined
  303. nephele has left
  304. thomaslewis has joined
  305. thomaslewis has left
  306. Laura has left
  307. Laura has joined
  308. xecks has left
  309. marc0s has left
  310. marc0s has joined
  311. marc0s has left
  312. marc0s has joined
  313. xecks has joined
  314. pasdesushi has joined
  315. marc0s has left
  316. marc0s has joined
  317. marc0s has left
  318. marc0s has joined
  319. bjabkberm has joined
  320. marc has left
  321. marc has joined
  322. emus has left
  323. marc has left
  324. marc has joined
  325. xnamed has left
  326. debacle has left
  327. emus has joined
  328. thomaslewis has joined
  329. Laura has left
  330. thomaslewis has left
  331. antranigv has left
  332. norayr has left
  333. norayr has joined
  334. qwestion has joined
  335. thomaslewis has joined
  336. Alex has left
  337. Alex has joined
  338. thomaslewis has left
  339. antranigv has joined
  340. marc0s has left
  341. marc0s has joined
  342. nephele has joined
  343. marc has left
  344. marc has joined
  345. Laura has joined
  346. thomaslewis has joined
  347. thomaslewis has left
  348. norayr has left
  349. norayr has joined
  350. antranigv has left
  351. tails has left
  352. lovetox has left
  353. thomaslewis has joined
  354. thomaslewis has left
  355. PapaTutuWawa has left
  356. lovetox has joined
  357. marc has left
  358. marc has joined
  359. lovetox has left
  360. marc0s has left
  361. marc0s has joined
  362. antranigv has joined
  363. lovetox has joined
  364. stuart.j.mackintosh has left
  365. PapaTutuWawa has joined
  366. stuart.j.mackintosh has joined
  367. thomaslewis has joined
  368. thomaslewis has left
  369. antranigv has left
  370. norayr has left
  371. norayr has joined
  372. marc0s has left
  373. marc0s has joined
  374. thomaslewis has joined
  375. thomaslewis has left
  376. Laura has left
  377. antranigv has joined
  378. xecks has left
  379. raghavgururajan has left
  380. antranigv has left
  381. debacle has joined
  382. abdullahi has left
  383. abdullahi has joined
  384. jubalh has left
  385. bjabkberm has left
  386. xecks has joined
  387. Laura has joined
  388. Laura has left
  389. Laura has joined
  390. al has joined
  391. nephele has left
  392. qwestion has left
  393. debacle has left
  394. antranigv has joined
  395. Matrix Traveler (bot) has left
  396. homebeach has left
  397. homebeach has joined
  398. Matrix Traveler (bot) has joined
  399. amee2k has joined
  400. antranigv has left
  401. al has left
  402. norayr has left
  403. norayr has joined
  404. nephele has joined
  405. thomaslewis has joined
  406. Alex has left
  407. kikuchiyo has left
  408. Alex has joined
  409. nephele has left
  410. kikuchiyo has joined
  411. thomaslewis has left
  412. atomicwatch has left
  413. norayr has left
  414. Alex has left
  415. Alex has joined
  416. dezant has left
  417. dezant has joined
  418. norayr has joined
  419. Laura has left
  420. Laura has joined
  421. nephele has joined
  422. Yagizа has left
  423. nephele has left
  424. msavoritias has left
  425. SouL has left
  426. nephele has joined
  427. Laura has left
  428. nephele has left
  429. Laura has joined
  430. PapaTutuWawa has left
  431. dezant has left
  432. dezant has joined
  433. Laura has left
  434. Laura has joined
  435. lovetox has left
  436. jubalh has joined
  437. marc has left
  438. Laura has left
  439. debacle has joined
  440. Laura has joined
  441. marc0s has left
  442. marc0s has joined
  443. amee2k has left
  444. wurstsalat has left
  445. amee2k has joined
  446. Laura has left
  447. Laura has joined
  448. SouL has joined
  449. Laura has left
  450. Laura has joined
  451. Matrix Traveler (bot) has left
  452. homebeach has left
  453. homebeach has joined
  454. Matrix Traveler (bot) has joined
  455. adx has left
  456. goffi has left
  457. goffi has joined
  458. amee2k has left
  459. Jkl has joined
  460. Jkl has left