jdev - 2020-08-10

  1. Beherit has left
  2. Beherit has joined
  3. Vaulor has left
  4. test2 has left
  5. test2 has joined
  6. marc0s has left
  7. SouL has left
  8. SouL has joined
  9. waqas has left
  10. SouL has left
  11. adrien has left
  12. adrien has joined
  13. adrien has left
  14. adrien has joined
  15. test2 has left
  16. test2 has joined
  17. Vaulor has joined
  18. Yagizа has joined
  19. SouL has joined
  20. lovetox has joined
  21. waqas has joined
  22. marc0s has joined
  23. paul has joined
  24. test2 has left
  25. test2 has joined
  26. adiaholic_ has left
  27. adiaholic_ has joined
  28. lovetox has left
  29. lovetox has joined
  30. waqas has left
  31. xecks has joined
  32. lovetox has left
  33. lovetox has joined
  34. Beherit has left
  35. Beherit has joined
  36. kikuchiyo has left
  37. sonny has left
  38. sonny has joined
  39. sonny has left
  40. sonny has joined
  41. Beherit has left
  42. Beherit has joined
  43. esil has left
  44. Beherit has left
  45. Beherit has joined
  46. test2 has left
  47. test2 has joined
  48. test2 has left
  49. esil has joined
  50. drops has left
  51. xecks has left
  52. xecks has joined
  53. pulkomandy has left
  54. pulkomandy has joined
  55. Beherit has left
  56. Beherit has joined
  57. Beherit has left
  58. Beherit has joined
  59. Martin has left
  60. Martin has joined
  61. drops has joined
  62. pulkomandy has left
  63. pulkomandy has joined
  64. sonny has left
  65. sonny has joined
  66. Beherit has left
  67. Beherit has joined
  68. Guus has left
  69. Guus has joined
  70. Beherit has left
  71. Beherit has joined
  72. pulkomandy has left
  73. pulkomandy has joined
  74. pulkomandy has left
  75. pulkomandy has joined
  76. sonny has left
  77. sonny has joined
  78. Beherit has left
  79. Beherit has joined
  80. test2 has joined
  81. debacle has joined
  82. kikuchiyo has joined
  83. kikuchiyo has left
  84. kikuchiyo has joined
  85. larma has left
  86. larma has joined
  87. larma has left
  88. larma has joined
  89. drops has left
  90. drops has joined
  91. sonny has left
  92. sonny has joined
  93. Vaulor has left
  94. Vaulor has joined
  95. test2 has left
  96. pulkomandy has left
  97. pulkomandy has joined
  98. pulkomandy has left
  99. pulkomandy has joined
  100. lovetox has left
  101. lovetox has joined
  102. test2 has joined
  103. Stefan has joined
  104. lovetox has left
  105. kikuchiyo has left
  106. lovetox has joined
  107. kikuchiyo has joined
  108. Beherit has left
  109. Beherit has joined
  110. Beherit has left
  111. Beherit has joined
  112. test2 has left
  113. test2 has joined
  114. kikuchiyo has left
  115. test2 has left
  116. test2 has joined
  117. adiaholic_ has left
  118. adiaholic_ has joined
  119. lovetox has left
  120. waqas has joined
  121. lovetox has joined
  122. kikuchiyo has joined
  123. xecks has left
  124. test2 has left
  125. xecks has joined
  126. xecks has left
  127. Syndace has left
  128. xecks has joined
  129. Syndace has joined
  130. sonny has left
  131. sonny has joined
  132. drops has left
  133. drops has joined
  134. drops has left
  135. drops has joined
  136. adrien has left
  137. adrien has joined
  138. sonny has left
  139. sonny has joined
  140. drops has left
  141. drops has joined
  142. kikuchiyo has left
  143. goffi has joined
  144. lovetox has left
  145. Wojtek has joined
  146. test2 has joined
  147. lovetox has joined
  148. lovetox has left
  149. test2 has left
  150. sonny has left
  151. sonny has joined
  152. lovetox has joined
  153. wurstsalat has left
  154. wurstsalat has joined
  155. lovetox has left
  156. Lance has joined
  157. Stefan has left
  158. Stefan has joined
  159. sonny has left
  160. sonny has joined
  161. ralphm has left
  162. ralphm has joined
  163. lovetox has joined
  164. marc0s has left
  165. Wojtek has left
  166. debacle has left
  167. Wojtek has joined
  168. Stefan has left
  169. Stefan has joined
  170. marc0s has joined
  171. debacle has joined
  172. lovetox so im running into a problem with ejabberd since a long time
  173. lovetox when i join many MUCs (hence much traffic)
  174. lovetox it seems ejabberd sends me stanzas and i dont get the chance to ack them until ejabberd runs into some stream management queue limit
  175. lovetox and aborts the connection
  176. lovetox so back then i just thought ok maybe my network code is shitty, lets rewrite this, but its still happening, and i dont really get what i could do better
  177. lovetox there is a outgoing connection and incoming connection, i have callbacks on both when they are "ready"
  178. lovetox and if they are ready, i write or receive data
  179. lovetox and if they are ready is decided by GLib
  180. lovetox so i didnt write the socket code
  181. lovetox i dont know why the outgoing connection does not become ready .. maybe because of the other side, but thats just a guess
  182. lovetox does any developer here have special code that somehow handles this case
  183. lovetox has left
  184. lovetox has joined
  185. Stefan has left
  186. goffi has left
  187. Kev You haven't got something going on like "I'll only write to the socket once I'm done reading from it" have you?
  188. Kev That's what the problem sounds like.
  189. lovetox no i definitly dont have that
  190. lovetox GLib abstracts that
  191. jonas’ lovetox, are you sure that glib will let you alternate between read and write if both are possible?
  192. lovetox i get a callback when the socket is ready, either to receive or to write
  193. lovetox and when i get that callback i use it to do exactly that
  194. lovetox no im not sure, but how do other devs tackle that problem, do you explicitly after X bytes received, send stuff?
  195. jonas’ my event loop takes care of that
  196. jonas’ but I don’t trust glib
  197. lovetox how?
  198. jonas’ (my event loop = asyncio.whateverthedefaulteventlooponlinuxis)
  199. jonas’ but asyncio has write queues, so I *expect* it to write things from the queues when possible and only then hand me read callbacks.
  200. lovetox ok i expect also things from GLib, so you don't handle that case yourself
  201. jonas’ lovetox, I suggest you go and read the glib source code
  202. lovetox thing is i had that problem when i used python network code
  203. lovetox and i only ever had it with ejabberd
  204. jonas’ prosody has no stream management queue size limits AFAIK
  205. jonas’ s/prosody/the unofficial mod_smacks/
  206. jonas’ ok, I checked asyncio; it will alternate between readers and writers. each iteration of the loop collects ready events and then processes them
  207. Kev I don't know what the issue is, but what you're describing is 100% the behaviour you'd get if you don't bother writing until you're done reading, and there's a lot of data to read.
  208. Kev So I'm aware of implementations that manually alternate to avoid reading from the queue forever.
  209. lovetox yeah i know this sounds like that
  210. lovetox maybe it is, maybe i should ask the GLib guys if they alternate between the streams
  211. jonas’ lovetox, just read the source
  212. jonas’ that’s the least ambiguous answer you’ll get
  213. Beherit has left
  214. Lance has left
  215. Yagizа has left
  216. Beherit has joined
  217. waqas has left
  218. lovetox has left
  219. lovetox has joined
  220. lovetox has left
  221. lovetox has joined
  222. Beherit has left
  223. Beherit has joined
  224. lovetox has left
  225. lovetox has joined
  226. lovetox has left
  227. lovetox has joined
  228. lovetox has left
  229. lovetox has joined
  230. Beherit has left
  231. eta has left
  232. eta has joined
  233. Beherit has joined
  234. Beherit has left
  235. Beherit has joined
  236. Beherit has left
  237. Beherit has joined
  238. adiaholic_ has left
  239. edhelas has left
  240. edhelas has joined
  241. adiaholic_ has joined
  242. lovetox has left
  243. waqas has joined
  244. SouL has left
  245. moparisthebest has left
  246. wurstsalat has left
  247. wurstsalat has joined
  248. Vaulor has left
  249. sonny has left
  250. sonny has joined
  251. paul has left
  252. Lance has joined
  253. debacle has left
  254. kikuchiyo has joined
  255. wurstsalat has left
  256. moparisthebest has joined