jdev - 2022-05-27


  1. thomaslewis has left
  2. Kev has left
  3. jgart has joined
  4. eu has left
  5. eu has joined
  6. lovetox has left
  7. lovetox has joined
  8. thomaslewis has joined
  9. wurstsalat has left
  10. Millesimus has left
  11. Kev has joined
  12. Kev has left
  13. Millesimus has joined
  14. Ingolf has joined
  15. Matrix Traveler (bot) has left
  16. homebeach has left
  17. homebeach has joined
  18. Matrix Traveler (bot) has joined
  19. Mx2 has left
  20. Kev has joined
  21. nik has joined
  22. atomicwatch has joined
  23. Kev has left
  24. amee2k has joined
  25. kikuchiyo has left
  26. amee2k has left
  27. Kev has joined
  28. Alex has left
  29. Millesimus has left
  30. Millesimus has joined
  31. Kev has left
  32. Millesimus has left
  33. amee2k has joined
  34. Millesimus has joined
  35. jgart has left
  36. Millesimus has left
  37. Yagizа has joined
  38. amee2k has left
  39. thomaslewis has left
  40. atomicwatch has left
  41. Kev has joined
  42. lovetox has left
  43. thomaslewis has joined
  44. lovetox has joined
  45. nik has left
  46. Millesimus has joined
  47. dezant has left
  48. dezant has joined
  49. spiral has left
  50. spiral has joined
  51. Kev has left
  52. adx has joined
  53. nik has joined
  54. antranigv has left
  55. antranigv has joined
  56. Kev has joined
  57. adx has left
  58. atomicwatch has joined
  59. jgart has joined
  60. SouL has joined
  61. jgart has left
  62. jgart has joined
  63. marc0s has left
  64. marc0s has joined
  65. adx has joined
  66. stuart.j.mackintosh has left
  67. Kev has left
  68. wurstsalat has joined
  69. stuart.j.mackintosh has joined
  70. nik has left
  71. nik has joined
  72. adx has left
  73. al has joined
  74. Kev has joined
  75. Stefan has joined
  76. antranigv has left
  77. stuart.j.mackintosh has left
  78. stuart.j.mackintosh has joined
  79. Kev has left
  80. antranigv has joined
  81. jgart has left
  82. jgart has joined
  83. al has left
  84. jgart has left
  85. Stefan has left
  86. antranigv has left
  87. adx has joined
  88. antranigv has joined
  89. Kev has joined
  90. dezant has left
  91. adx has left
  92. dezant has joined
  93. Stefan has joined
  94. Millesimus has left
  95. antranigv has left
  96. Kev has left
  97. Kev has joined
  98. marc has joined
  99. Laura has left
  100. Kev has left
  101. Laura has joined
  102. Millesimus has joined
  103. Millesimus has left
  104. antranigv has joined
  105. Stefan has left
  106. marc has left
  107. badrihippo has joined
  108. adx has joined
  109. badrihippo Newbie question: how does "pre-emptively grant subscription requests" work? Do I just send a `<presence type="subscribed">` to the contact or are there other subtleties?
  110. thomaslewis has left
  111. Kev has joined
  112. msavoritias has joined
  113. flow badrihippo, that sounds about right, see also https://datatracker.ietf.org/doc/html/rfc6121#section-3.4
  114. badrihippo Ah that's what I was looking for; thank you! 🙂
  115. al has joined
  116. Millesimus has joined
  117. Alex has joined
  118. antranigv has left
  119. jubalh has joined
  120. thomaslewis has joined
  121. Millesimus has left
  122. Millesimus has joined
  123. Kev has left
  124. Kev has joined
  125. antranigv has joined
  126. antranigv has left
  127. thomaslewis has left
  128. debacle has joined
  129. lovetox badrihippo, of course you need a server that actually supports that
  130. lovetox which is ot a given
  131. lovetox but i guess it doesnt hurt to just do it
  132. adx has left
  133. Millesimus has left
  134. Millesimus has joined
  135. raghavgururajan has joined
  136. thomaslewis has joined
  137. al has left
  138. Millesimus has left
  139. lovetox Question, after successful AUTH we are supposed to reset the stream
  140. lovetox what if i want to end the stream right after AUTH
  141. lovetox would i need to wait on the server reinitiating the stream with <stream:stream ...>
  142. lovetox then send it </stream:stream>
  143. Millesimus has joined
  144. lovetox currently i send </stream:stream> instantly after i recieve the <success> from the auth
  145. lovetox the server responds to that with a </stream:stream>
  146. lovetox which i parser rejects because the server never reinitiated the stream after <success>
  147. Stefan has joined
  148. lovetox sounds like a server bug or?
  149. flow you mean the server should send a stream open immediately followed by </stream>?
  150. lovetox i guess ..
  151. thomaslewis has left
  152. lovetox im not sure how the server even can send </stream> first
  153. lovetox i mean would a server not queue up the stream open instantly after sending <success>
  154. lovetox what is he waiting for ?
  155. lovetox or is he waiting for my client?
  156. lovetox am i supposed to open the stream and server reacts to that with a open himself
  157. flow lovetox, "would i need to wait on the server reinitiating the stream with <stream:stream ...>" does the server wait for the client to send the next stream open after <success/>?
  158. lovetox yeah ..
  159. flow basically the server just awaits commands from the client
  160. lovetox so actually, i need to reopen the stream, and end it afterwards
  161. marc has joined
  162. flow and in your case, your client sends </stream> instead of a new stream open tag
  163. lovetox or i simply dont reopen, but also dont reset the parser
  164. lovetox ok, thanks flow that helped
  165. flow I think you want to reset your parser only after you send a new stream open tag
  166. Millesimus has left
  167. lovetox # Reset parser because we will receive a new stream header # which will otherwise lead to a parsing error
  168. lovetox thats my comment, so i guess some servers do indeed send out stream reopen
  169. flow well actually before you send the stream open tag, as otherwise this could be racy, but definelty only reset the parser if your logic decided that it will send a new stream open tag
  170. lovetox and not wait for the client
  171. lovetox but then this would be a server bug, because client opens streams not servers
  172. flow hmm servers sending stream open unsolicited would probably be a server bug
  173. dezant has left
  174. lovetox i guess its the expected thing after auth, so maybe server dev thought not to wait for client
  175. lovetox but yeah they should not do this
  176. flow right
  177. Millesimus has joined
  178. badrihippo lovetox: I'm running the server, so that's not an issue 🙂
  179. badrihippo The standard says not to do it unless the server supports it though (duh) so I'll try to check for that firstn
  180. badrihippo The standard says not to do it unless the server supports it though (duh) so I'll try to check for that first
  181. lovetox thats what i meant
  182. lovetox i just remember some servers did just not implement that
  183. badrihippo has left
  184. goffi has joined
  185. lovetox hmmmm i found the server who does this :D
  186. lovetox prosody bug report incoming :)
  187. thomaslewis has joined
  188. badrihippo has joined
  189. lovetox ok maybe not
  190. lovetox damn
  191. lovetox > Upon receiving the <success/> element, the initiating entity MUST initiate a new stream over the existing TCP connection by sending a new initial stream header to the receiving entity (as specified under Section 4.3.3, the initiating entity MUST NOT send a closing </stream> tag before sending the new initial stream header, since the receiving entity and initiating entity MUST consider the original stream to be replaced upon success of the SASL negotiation).
  192. lovetox > Upon receiving the <success/> element, the initiating entity MUST initiate a new stream over the existing TCP connection by sending a new initial stream header to the receiving entity (as specified under Section 4.3.3, the initiating entity MUST NOT send a closing </stream> tag before sending the new initial stream header, since the receiving entity and initiating entity MUST consider the original stream to be replaced upon success of the SASL negotiation).
  193. lovetox so im not allowed to end the stream
  194. lovetox i need to reopen it, just to end it
  195. jubalh has left
  196. lovetox or i simply do nothing
  197. lovetox if i dont reopen i also dont need to close ..
  198. lovetox but maybe its better to open and then to close, otherwise the server might have some resource handing around?
  199. deuill has left
  200. deuill has joined
  201. thomaslewis has left
  202. kikuchiyo has joined
  203. lovetox https://share.hoerist.com/philipp/Mam1fIoti0xJnAZe/rfc.jpg
  204. debacle has left
  205. stuart.j.mackintosh has left
  206. deuill has left
  207. deuill has joined
  208. antranigv has joined
  209. Wojtek has joined
  210. thomaslewis has joined
  211. jubalh has joined
  212. jubalh has left
  213. jubalh has joined
  214. antranigv has left
  215. thomaslewis has left
  216. rubi has left
  217. antranigv has joined
  218. pasdesushi has joined
  219. jubalh has left
  220. pasdesushi has left
  221. rubi has joined
  222. pasdesushi has joined
  223. antranigv has left
  224. thomaslewis has joined
  225. antranigv has joined
  226. Kev has left
  227. PapaTutuWawa has joined
  228. Mx2 has joined
  229. rubi has left
  230. rubi has joined
  231. jubalh has joined
  232. norayr has left
  233. Alex has left
  234. norayr has joined
  235. Alex has joined
  236. antranigv has left
  237. xnamed has joined
  238. rubi has left
  239. rubi has joined
  240. Mx2 has left
  241. southerntofu has left
  242. rubi has left
  243. Laura has left
  244. antranigv has joined
  245. thomaslewis has left
  246. badrihippo has left
  247. flow lovetox, I forgot to ask previously: in which situation do you want to close the stream after the SASL auth was successful?
  248. marmistrz has left
  249. antranigv has left
  250. lovetox I only want to test that account credentials input by the user are correct
  251. lovetox I have this as a precondition before adding the account with all settings dB tables etc to gajim
  252. flow I see, makes sense. So yeah, with the spec part you dugged out, it appears you have to restart the stream to end the stream
  253. lovetox Also I want to give the user an option to add the account without connecting yet
  254. thomaslewis has joined
  255. marmistrz has joined
  256. Stefan has left
  257. stuart.j.mackintosh has joined
  258. amee2k has joined
  259. thomaslewis has left
  260. rubi has joined
  261. antranigv has joined
  262. Laura has joined
  263. thomaslewis has joined
  264. amee2k has left
  265. adx has joined
  266. amee2k has joined
  267. rubi has left
  268. kfv has left
  269. kfv has joined
  270. antranigv has left
  271. marmistrz has left
  272. xecks has left
  273. marmistrz has joined
  274. rubi has joined
  275. antranigv has joined
  276. adx has left
  277. Laura has left
  278. Laura has joined
  279. Kiwi has left
  280. xecks has joined
  281. rubi has left
  282. rubi has joined
  283. Alex has left
  284. badrihippo has joined
  285. thomaslewis has left
  286. rubi has left
  287. rubi has joined
  288. norayr has left
  289. thomaslewis has joined
  290. Alex has joined
  291. msavoritias has left
  292. larma has joined
  293. Millesimus has left
  294. rubi has left
  295. rubi has joined
  296. msavoritias has joined
  297. Millesimus has joined
  298. jubalh has left
  299. msavoritias has left
  300. Millesimus has left
  301. pasdesushi has left
  302. jubalh has joined
  303. msavoritias has joined
  304. pasdesushi has joined
  305. Millesimus has joined
  306. rubi has left
  307. rubi has joined
  308. kfv has left
  309. kfv has joined
  310. kfv has left
  311. kfv has joined
  312. rubi has left
  313. rubi has joined
  314. amee2k has left
  315. amee2k has joined
  316. rubi has left
  317. rubi has joined
  318. msavoritias has left
  319. msavoritias has joined
  320. thomaslewis has left
  321. amee2k has left
  322. thomaslewis has joined
  323. Dele has joined
  324. pasdesushi has left
  325. rubi has left
  326. pasdesushi has joined
  327. Wojtek has left
  328. antranigv has left
  329. antranigv has joined
  330. inky has left
  331. Alex has left
  332. Alex has joined
  333. rubi has joined
  334. amee2k has joined
  335. Wojtek has joined
  336. PapaTutuWawa has left
  337. debacle has joined
  338. xecks has left
  339. badrihippo has left
  340. Dele has left
  341. deuill has left
  342. deuill has joined
  343. Stefan has joined
  344. deuill has left
  345. deuill has joined
  346. rubi has left
  347. rubi has joined
  348. emus has left
  349. emus has joined
  350. emus has left
  351. rubi has left
  352. rubi has joined
  353. emus has joined
  354. nik has left
  355. inky has joined
  356. PapaTutuWawa has joined
  357. marc has left
  358. marc has joined
  359. marc has left
  360. xecks has joined
  361. marc has joined
  362. amee2k has left
  363. atomicwatch has left
  364. marc has left
  365. pasdesushi has left
  366. marc has joined
  367. pasdesushi has joined
  368. amee2k has joined
  369. atomicwatch has joined
  370. marc has left
  371. dezant has joined
  372. pasdesushi has left
  373. pasdesushi has joined
  374. dezant has left
  375. xnamed has left
  376. msavoritias has left
  377. marc has joined
  378. inky has left
  379. jubalh has left
  380. Wojtek has left
  381. deuill has left
  382. deuill has joined
  383. msavoritias has joined
  384. deuill has left
  385. xecks has left
  386. deuill has joined
  387. xecks has joined
  388. Stefan has left
  389. antranigv has left
  390. xecks has left
  391. xecks has joined
  392. jubalh has joined
  393. nik has joined
  394. Stefan has joined
  395. dezant has joined
  396. antranigv has joined
  397. debacle has left
  398. xecks has left
  399. xecks has joined
  400. xecks has left
  401. xecks has joined
  402. larma has left
  403. Laura has left
  404. amee2k has left
  405. rubi has left
  406. antranigv has left
  407. xecks has left
  408. xecks has joined
  409. antranigv has joined
  410. amee2k has joined
  411. inky has joined
  412. Schimon has left
  413. sonny has left
  414. sonny has joined
  415. rubi has joined
  416. Anton L. Šijanec has left
  417. Ingolf has left
  418. Laura has joined
  419. rubi has left
  420. rubi has joined
  421. atomicwatch has left
  422. PapaTutuWawa has left
  423. badrihippo has joined
  424. atomicwatch has joined
  425. Yagizа has left
  426. adx has joined
  427. Laura has left
  428. Alastair Hogge has left
  429. larma has joined
  430. larma has left
  431. larma has joined
  432. larma has left
  433. larma has joined
  434. larma has left
  435. larma has joined
  436. Anton L. Šijanec has joined
  437. nik has left
  438. Ingolf has joined
  439. junaid has left
  440. junaid has joined
  441. sonny has left
  442. sonny has joined
  443. paul has left
  444. larma has left
  445. adx has left
  446. raghavgururajan has left
  447. thomaslewis has left
  448. paul has joined
  449. Alex has left
  450. adx has joined
  451. Alex has joined
  452. PapaTutuWawa has joined
  453. nephele has joined
  454. nephele has left
  455. thomaslewis has joined
  456. dezant has left
  457. Millesimus has left
  458. Millesimus has joined
  459. antranigv has left
  460. antranigv has joined
  461. adx has left
  462. xnamed has joined
  463. norayr has joined
  464. dezant has joined
  465. Laura has joined
  466. Beherit has joined
  467. thomaslewis has left
  468. abdullahi has left
  469. abdullahi has joined
  470. stuart.j.mackintosh has left
  471. stuart.j.mackintosh has joined
  472. amee2k has left
  473. badrihippo has left
  474. drops has left
  475. abdullahi has left
  476. antranigv has left
  477. antranigv has joined
  478. Matrix Traveler (bot) has left
  479. homebeach has left
  480. homebeach has joined
  481. Matrix Traveler (bot) has joined
  482. drops has joined
  483. norayr has left
  484. abdullahi has joined
  485. deuill has left
  486. deuill has joined
  487. Millesimus has left
  488. Millesimus has joined
  489. deuill has left
  490. deuill has joined
  491. Millesimus has left
  492. adx has joined
  493. Millesimus has joined
  494. adx has left
  495. amee2k has joined
  496. thomaslewis has joined
  497. msavoritias has left
  498. emus has left
  499. antranigv has left
  500. adx has joined
  501. dezant has left
  502. antranigv has joined
  503. dezant has joined
  504. antranigv has left
  505. dezant has left
  506. antranigv has joined
  507. dezant has joined
  508. Stefan has left
  509. antranigv has left
  510. Kev has joined
  511. norayr has joined
  512. antranigv has joined
  513. pasdesushi has left
  514. pasdesushi has joined
  515. Beherit has left
  516. Kev has left
  517. PapaTutuWawa has left
  518. Ingolf has left
  519. Ingolf has joined
  520. adx has left
  521. emus has joined
  522. emus has left
  523. Kev has joined
  524. marc0s has left
  525. marc0s has joined
  526. antranigv has left
  527. Kev has left
  528. antranigv has joined