jdev - 2020-10-25


  1. alex-a-soto has left

  2. alex-a-soto has joined

  3. kikuchiyo has left

  4. kikuchiyo has joined

  5. kikuchiyo has left

  6. kikuchiyo has joined

  7. jonnj has left

  8. jonnj has joined

  9. moparisthebest has left

  10. moparisthebest has joined

  11. disgyze has left

  12. SouL has left

  13. j has joined

  14. j

    Hello

  15. paul has left

  16. Alex has left

  17. test2 has joined

  18. mac has joined

  19. test2 has left

  20. j has left

  21. mac has left

  22. mac has joined

  23. Guus

    Is it me you're looking for? 🎶

  24. mac has left

  25. disgyze has joined

  26. DebXWoody has joined

  27. alacer has left

  28. lovetox has joined

  29. SouL has joined

  30. paul has joined

  31. alacer has joined

  32. Beherit has left

  33. Beherit has joined

  34. Beherit has left

  35. Beherit has joined

  36. test2 has joined

  37. test2 has left

  38. wurstsalat has joined

  39. mac has joined

  40. mac has left

  41. mac has joined

  42. xecks has joined

  43. Beherit has left

  44. Beherit has joined

  45. Alex has joined

  46. DebXWoody has left

  47. sonny has left

  48. sonny has joined

  49. debacle has joined

  50. mac has left

  51. sonny has left

  52. sonny has joined

  53. alex-a-soto has left

  54. alex-a-soto has joined

  55. jonnj has left

  56. debacle has left

  57. mac has joined

  58. mac has left

  59. YagizĐ° has joined

  60. mac has joined

  61. mac has left

  62. jonnj has joined

  63. DebXWoody has joined

  64. DebXWoody has left

  65. DebXWoody has joined

  66. debacle has joined

  67. floretta has left

  68. serge90 has joined

  69. DebXWoody has left

  70. xecks has left

  71. xecks has joined

  72. floretta has joined

  73. DebXWoody has joined

  74. DebXWoody has left

  75. debacle has left

  76. disgyze has left

  77. lovetox

    Ge0rG, whats the value in timing out iq requests?

  78. lovetox

    in a general manner, like every iq request

  79. Zash

    So you don't hold on to the state forever

  80. lovetox

    i understand it for specific iqs, where i want to give the user within a timeframe a response

  81. lovetox

    Zash, it cant be forever, because on a non-sm-resume reconnect, all callbacks are invalidated anyway

  82. lovetox

    and its bound to happen

  83. lovetox

    hm that gets me thinking, iq request are not really bound to a session

  84. Zash

    To the full JID, ish.

  85. lovetox

    ah yeah

  86. lovetox

    that was it

  87. lovetox has left

  88. xecks has left

  89. jonas’

    lovetox, placing limits on things is always good

  90. jonas’

    unbounded memory consumption always bad

  91. Link Mauve

    lovetox, poezio previously didn’t timeout iqs, wishing that every other entity on the network respected this MUST in the spec, and that no stanza would ever be lost over the network.

  92. Link Mauve

    But with 22k iq handlers in flight due to remote entities not doing that, it made poezio very slow.

  93. Zash

    Nobody said what time frame the reply must be returned in...

  94. jonas’

    particularly great when there’s a remote way to make poezio send a lot of IQs :)

  95. jonas’

    to a near-arbitrary address

  96. jonas’

    which can be made to blackhole stuff

  97. Link Mauve

    Now that we have a (IIRC) two minutes timeout, poezio stays fast for much longer.

  98. DebXWoody has joined

  99. Kev

    > lovetox, placing limits on things is always good You say that, but I have seen plenty of issues with different clients putting in arbitrary timeouts because they assume they'll always be used on the same sort of network connection as the author was using.

  100. Kev

    So, yes, not memory-exhausting yourself is good, but you have to be tremendously careful while doing it if you don't want to break things for someone.

  101. jonas’

    yes

  102. Ge0rG

    Kev: there is never the right default value.

  103. Kev

    Quite.

  104. Ge0rG

    Kev: you might have designed for a 75 bps military satlink, but I'm working on German mobile "broadband".

  105. Kev

    Although setting iq timeouts to something like 10 minutes is probably safe enough.

  106. Kev

    I have seen situations in which 5minutesish wouldn't have been.

  107. Zash

    Due Linux kernel TCP default timeouts, and lack of happy eyeballs, it can take way longer than 2 minutes just to get s2s up.

  108. Zash

    ~90 seconds per attempt or somesuch.

  109. Kev

    The real best default is "Whatever the maximum length of time is before I can't possibly avoid timing out without failure* locally"

  110. Zash

    Or you could set a memory budget instead. If whatever state you have takes more than x size, time out the oldest one.

  111. Zash

    And then like, don't disco#info everyone in those 10000 user MUCs

  112. kikuchiyo has left

  113. kikuchiyo has joined

  114. kikuchiyo has left

  115. kikuchiyo has joined

  116. kikuchiyo has left

  117. kikuchiyo has joined

  118. kikuchiyo has left

  119. kikuchiyo has joined

  120. kikuchiyo has left

  121. kikuchiyo has joined

  122. kikuchiyo has left

  123. kikuchiyo has joined

  124. kikuchiyo has left

  125. kikuchiyo has joined

  126. kikuchiyo has left

  127. kikuchiyo has joined

  128. kikuchiyo has left

  129. lovetox has joined

  130. kikuchiyo has joined

  131. kikuchiyo has left

  132. kikuchiyo has joined

  133. kikuchiyo has left

  134. kikuchiyo has joined

  135. kikuchiyo has left

  136. lovetox

    memory consumption for a dict wit iq: callback?!

  137. kikuchiyo has joined

  138. kikuchiyo has left

  139. kikuchiyo has joined

  140. kikuchiyo has left

  141. kikuchiyo has joined

  142. kikuchiyo has left

  143. lovetox

    not sure on what machines you are, but i could probably store a billion and it would still not really noteable

  144. kikuchiyo has joined

  145. kikuchiyo has left

  146. Zash

    define "billion"

  147. lovetox

    ah a billion is probably too much

  148. kikuchiyo has joined

  149. lovetox

    but you get the idea

  150. kikuchiyo has left

  151. kikuchiyo has joined

  152. kikuchiyo has left

  153. kikuchiyo has joined

  154. kikuchiyo has left

  155. kikuchiyo has joined

  156. jonas’

    it soon becomes more than just id: callback; the callback will often have some kind of closure associated to provide more context to the reply

  157. Zash

    2Ă—64 bit pointers minimum per dict entry or so?

  158. jonas’

    also hashmap overhead

  159. Zash

    yes, hence "minumum"

  160. xecks has joined

  161. Zash

    And 128 bit UUIDs

  162. Zash

    ... usually encoded as 36 byte strings (+\0 and/or length)

  163. goffi has joined

  164. xecks has left

  165. lovetox has left

  166. debacle has joined

  167. lovetox has joined

  168. floretta has left

  169. lovetox has left

  170. edhelas has left

  171. edhelas has joined

  172. xecks has joined

  173. kikuchiyo has left

  174. alex-a-soto has left

  175. alex-a-soto has joined

  176. lovetox has joined

  177. kikuchiyo has joined

  178. kikuchiyo has left

  179. kikuchiyo has joined

  180. kikuchiyo has left

  181. kikuchiyo has joined

  182. kikuchiyo has left

  183. kikuchiyo has joined

  184. kikuchiyo has left

  185. kikuchiyo has joined

  186. kikuchiyo has left

  187. kikuchiyo has joined

  188. kikuchiyo has left

  189. kikuchiyo has joined

  190. kikuchiyo has left

  191. kikuchiyo has joined

  192. kikuchiyo has left

  193. kikuchiyo has joined

  194. kikuchiyo has left

  195. kikuchiyo has joined

  196. kikuchiyo has left

  197. kikuchiyo has joined

  198. kikuchiyo has left

  199. kikuchiyo has joined

  200. kikuchiyo has left

  201. kikuchiyo has joined

  202. kikuchiyo has left

  203. kikuchiyo has joined

  204. kikuchiyo has left

  205. kikuchiyo has joined

  206. kikuchiyo has left

  207. kikuchiyo has joined

  208. kikuchiyo has left

  209. kikuchiyo has joined

  210. kikuchiyo has left

  211. kikuchiyo has joined

  212. kikuchiyo has left

  213. kikuchiyo has joined

  214. kikuchiyo has left

  215. kikuchiyo has joined

  216. kikuchiyo has left

  217. kikuchiyo has joined

  218. kikuchiyo has left

  219. kikuchiyo has joined

  220. kikuchiyo has left

  221. kikuchiyo has joined

  222. kikuchiyo has left

  223. kikuchiyo has joined

  224. kikuchiyo has left

  225. kikuchiyo has joined

  226. kikuchiyo has left

  227. kikuchiyo has joined

  228. kikuchiyo has left

  229. kikuchiyo has joined

  230. kikuchiyo has left

  231. kikuchiyo has joined

  232. kikuchiyo has left

  233. kikuchiyo has joined

  234. kikuchiyo has left

  235. kikuchiyo has joined

  236. kikuchiyo has left

  237. kikuchiyo has joined

  238. kikuchiyo has left

  239. kikuchiyo has joined

  240. kikuchiyo has left

  241. kikuchiyo has joined

  242. kikuchiyo has left

  243. kikuchiyo has joined

  244. kikuchiyo has left

  245. kikuchiyo has joined

  246. kikuchiyo has left

  247. kikuchiyo has joined

  248. kikuchiyo has left

  249. kikuchiyo has joined

  250. kikuchiyo has left

  251. kikuchiyo has joined

  252. kikuchiyo has left

  253. kikuchiyo has joined

  254. xecks has left

  255. kikuchiyo has left

  256. kikuchiyo has joined

  257. kikuchiyo has left

  258. kikuchiyo has joined

  259. kikuchiyo has left

  260. kikuchiyo has joined

  261. kikuchiyo has left

  262. kikuchiyo has joined

  263. kikuchiyo has left

  264. kikuchiyo has joined

  265. kikuchiyo has left

  266. kikuchiyo has joined

  267. kikuchiyo has left

  268. kikuchiyo has joined

  269. kikuchiyo has left

  270. kikuchiyo has joined

  271. kikuchiyo has left

  272. kikuchiyo has joined

  273. kikuchiyo has left

  274. kikuchiyo has joined

  275. kikuchiyo has left

  276. kikuchiyo has joined

  277. alex-a-soto has left

  278. kikuchiyo has left

  279. alex-a-soto has joined

  280. kikuchiyo has joined

  281. kikuchiyo has left

  282. kikuchiyo has joined

  283. alex-a-soto has left

  284. alex-a-soto has joined

  285. alex-a-soto has left

  286. alex-a-soto has joined

  287. alacer has left

  288. kikuchiyo has left

  289. floretta has joined

  290. kikuchiyo has joined

  291. YagizĐ° has left

  292. kikuchiyo has left

  293. kikuchiyo has joined

  294. kikuchiyo has left

  295. kikuchiyo has joined

  296. kikuchiyo has left

  297. kikuchiyo has joined

  298. kikuchiyo has left

  299. kikuchiyo has joined

  300. kikuchiyo has left

  301. kikuchiyo has joined

  302. xecks has joined

  303. lovetox has left

  304. adrien has joined

  305. DebXWoody has left

  306. test2 has joined

  307. test2 has left

  308. goffi has left

  309. test2 has joined

  310. xecks has left

  311. kikuchiyo has left

  312. debacle has left

  313. kikuchiyo has joined

  314. Zash has left

  315. Zash has joined

  316. test2 has left