jdev - 2022-10-27


  1. Kev has left

  2. Kev has joined

  3. pasdesushi has left

  4. debacle has left

  5. xnamed has left

  6. Sam has left

  7. wurstsalat has left

  8. xnamed has joined

  9. xnamed has left

  10. Vaulor has left

  11. gregory has left

  12. xnamed has joined

  13. Kev has left

  14. Kev has joined

  15. EOF has left

  16. EOF has joined

  17. kikuchiyo has joined

  18. jgart has joined

  19. goffi has left

  20. atomicwatch has left

  21. thomaslewis has joined

  22. thomaslewis has left

  23. atomicwatch has joined

  24. thomaslewis has joined

  25. thomaslewis has left

  26. goffi has joined

  27. Kev has left

  28. Kev has joined

  29. Kev has left

  30. Kev has joined

  31. atomicwatch has left

  32. atomicwatch has joined

  33. Yagizа has joined

  34. Millesimus has left

  35. Wojtek has left

  36. Millesimus has joined

  37. Sam has joined

  38. marc0s has left

  39. marc0s has joined

  40. Sam has left

  41. nik has joined

  42. adx has joined

  43. Vaulor has joined

  44. xnamed has left

  45. xnamed has joined

  46. pasdesushi has joined

  47. marc0s has left

  48. thomaslewis has joined

  49. marc0s has joined

  50. thomaslewis has left

  51. thomaslewis has joined

  52. thomaslewis has left

  53. Beherit has joined

  54. thomaslewis has joined

  55. thomaslewis has left

  56. xnamed has left

  57. thomaslewis has joined

  58. thomaslewis has left

  59. xnamed has joined

  60. atomicwatch has left

  61. selurvedu has left

  62. thomaslewis has joined

  63. thomaslewis has left

  64. thomaslewis has joined

  65. nicoco has joined

  66. thomaslewis has left

  67. Yagizа has left

  68. goffi has left

  69. goffi has joined

  70. thomaslewis has joined

  71. adx has left

  72. thomaslewis has left

  73. thomaslewis has joined

  74. adx has joined

  75. thomaslewis has left

  76. selurvedu has joined

  77. gregory has joined

  78. mirux has joined

  79. MSavoritias (fae,ve) has joined

  80. selurvedu has left

  81. marc0s has left

  82. marc0s has joined

  83. marc0s has left

  84. marc0s has joined

  85. MattJ has joined

  86. marc0s has left

  87. marc0s has joined

  88. marc0s has left

  89. marc0s has joined

  90. Alex has left

  91. marc0s has left

  92. marc0s has joined

  93. marc0s has left

  94. marc0s has joined

  95. kikuchiyo has left

  96. marc0s has left

  97. marc0s has joined

  98. marc0s has left

  99. marc0s has joined

  100. Yagizа has joined

  101. marc0s has left

  102. marc0s has joined

  103. Alex has joined

  104. Laura has left

  105. kikuchiyo has joined

  106. debacle has joined

  107. pulkomandy has left

  108. pulkomandy has joined

  109. marc0s has left

  110. marc0s has joined

  111. amee2k has joined

  112. marc0s has left

  113. marc0s has joined

  114. adx has left

  115. atomicwatch has joined

  116. kikuchiyo has left

  117. marc0s has left

  118. marc0s has joined

  119. pulkomandy has left

  120. wurstsalat has joined

  121. marc0s has left

  122. marc0s has joined

  123. marc0s has left

  124. marc0s has joined

  125. marc0s has left

  126. marc0s has joined

  127. marc0s has left

  128. marc0s has joined

  129. Mario Sabatino has joined

  130. marc0s has left

  131. marc0s has joined

  132. Beherit has left

  133. kikuchiyo has joined

  134. amee2k has left

  135. marc0s has left

  136. marc0s has joined

  137. rubi has left

  138. rubi has joined

  139. adx has joined

  140. kikuchiyo has left

  141. rubi has left

  142. rubi has joined

  143. amee2k has joined

  144. marc0s has left

  145. marc0s has joined

  146. Beherit has joined

  147. larma has joined

  148. amee2k has left

  149. kikuchiyo has joined

  150. kikuchiyo has left

  151. marc0s has left

  152. amee2k has joined

  153. marc0s has joined

  154. debacle has left

  155. amee2k has left

  156. Mx2 has left

  157. kikuchiyo has joined

  158. kikuchiyo has left

  159. kikuchiyo has joined

  160. amee2k has joined

  161. debacle has joined

  162. marc0s has left

  163. marc0s has joined

  164. marc0s has left

  165. marc0s has joined

  166. Matrix Traveler (bot) has left

  167. homebeach has left

  168. homebeach has joined

  169. Matrix Traveler (bot) has joined

  170. marc0s has left

  171. marc0s has joined

  172. pulkomandy has joined

  173. kikuchiyo has left

  174. mirux has left

  175. kikuchiyo has joined

  176. mirux has joined

  177. kikuchiyo has left

  178. xecks has left

  179. xecks has joined

  180. pulkomandy has left

  181. kikuchiyo has joined

  182. mirux has left

  183. kikuchiyo has left

  184. kikuchiyo has joined

  185. mirux has joined

  186. pulkomandy has joined

  187. marc0s has left

  188. marc0s has joined

  189. marc0s has left

  190. marc0s has joined

  191. marc0s has left

  192. marc0s has joined

  193. paul has left

  194. kikuchiyo has left

  195. nik has left

  196. kikuchiyo has joined

  197. paul has joined

  198. Wojtek has joined

  199. mirux has left

  200. marc0s has left

  201. marc0s has joined

  202. mirux has joined

  203. Mx2 has joined

  204. nik has joined

  205. Laura has joined

  206. pulkomandy has left

  207. pulkomandy has joined

  208. pulkomandy has left

  209. pulkomandy has joined

  210. mirux has left

  211. mirux has joined

  212. mirux has left

  213. Mx2 has left

  214. mirux has joined

  215. mirux has left

  216. PapaTutuWawa has joined

  217. mirux has joined

  218. kikuchiyo has left

  219. kikuchiyo has joined

  220. marc0s has left

  221. marc0s has joined

  222. marc0s has left

  223. mirux has left

  224. marc0s has joined

  225. pulkomandy has left

  226. pulkomandy has joined

  227. Mx2 has joined

  228. marc0s has left

  229. marc0s has joined

  230. mirux has joined

  231. kikuchiyo has left

  232. marc0s has left

  233. marc0s has joined

  234. kikuchiyo has joined

  235. marc0s has left

  236. marc0s has joined

  237. kikuchiyo has left

  238. kikuchiyo has joined

  239. kikuchiyo has left

  240. techmetx11 has left

  241. kikuchiyo has joined

  242. kikuchiyo has left

  243. techmetx11 has joined

  244. kikuchiyo has joined

  245. kikuchiyo has left

  246. kikuchiyo has joined

  247. paul has left

  248. Sam has joined

  249. pulkomandy has left

  250. nik has left

  251. nik has joined

  252. kikuchiyo has left

  253. kikuchiyo has joined

  254. kikuchiyo has left

  255. kikuchiyo has joined

  256. marc0s has left

  257. marc0s has joined

  258. marc0s has left

  259. marc0s has joined

  260. sonny has left

  261. sonny has joined

  262. sonny has left

  263. sonny has joined

  264. sonny has left

  265. sonny has joined

  266. mirux has left

  267. larma has left

  268. PapaTutuWawa has left

  269. mirux has joined

  270. marc0s has left

  271. marc0s has joined

  272. marc0s has left

  273. marc0s has joined

  274. mirux has left

  275. Wojtek has left

  276. mirux has joined

  277. sonny has left

  278. Wojtek has joined

  279. marc0s has left

  280. marc0s has joined

  281. nik has left

  282. sonny has joined

  283. amee2k has left

  284. nik has joined

  285. marc0s has left

  286. marc0s has joined

  287. marc0s has left

  288. marc0s has joined

  289. marc0s has left

  290. marc0s has joined

  291. marc0s has left

  292. marc0s has joined

  293. Wojtek has left

  294. Laura has left

  295. Laura has joined

  296. pulkomandy has joined

  297. xnamed has left

  298. Wojtek has joined

  299. marc0s has left

  300. marc0s has joined

  301. marc0s has left

  302. marc0s has joined

  303. PapaTutuWawa has joined

  304. marc0s has left

  305. marc0s has joined

  306. marc0s has left

  307. marc0s has joined

  308. Matrix Traveler (bot) has left

  309. homebeach has left

  310. homebeach has joined

  311. Matrix Traveler (bot) has joined

  312. amee2k has joined

  313. nik has left

  314. pulkomandy has left

  315. Millesimus has left

  316. marc0s has left

  317. marc0s has joined

  318. Millesimus has joined

  319. mirux has left

  320. mirux has joined

  321. marc0s has left

  322. marc0s has joined

  323. mirux has left

  324. marc0s has left

  325. marc0s has joined

  326. mirux has joined

  327. mirux has left

  328. mirux has joined

  329. mirux has left

  330. mirux has joined

  331. thomaslewis has joined

  332. thomaslewis has left

  333. paul has joined

  334. nik has joined

  335. Sam has left

  336. amee2k has left

  337. xnamed has joined

  338. kikuchiyo has left

  339. nik has left

  340. kikuchiyo has joined

  341. kikuchiyo has left

  342. kikuchiyo has joined

  343. kikuchiyo has left

  344. kikuchiyo has joined

  345. kikuchiyo has left

  346. kikuchiyo has joined

  347. kikuchiyo has left

  348. sonny has left

  349. sonny has joined

  350. MSavoritias (fae,ve) has left

  351. MSavoritias (fae,ve) has joined

  352. kikuchiyo has joined

  353. kikuchiyo has left

  354. kikuchiyo has joined

  355. kikuchiyo has left

  356. kikuchiyo has joined

  357. kikuchiyo has left

  358. kikuchiyo has joined

  359. kikuchiyo has left

  360. kikuchiyo has joined

  361. kikuchiyo has left

  362. Sam has joined

  363. _root has left

  364. kikuchiyo has joined

  365. _root has joined

  366. kikuchiyo has left

  367. kikuchiyo has joined

  368. kikuchiyo has left

  369. kikuchiyo has joined

  370. kikuchiyo has left

  371. kikuchiyo has joined

  372. kikuchiyo has left

  373. kikuchiyo has joined

  374. kikuchiyo has left

  375. nik has joined

  376. kikuchiyo has joined

  377. kikuchiyo has left

  378. kikuchiyo has joined

  379. kikuchiyo has left

  380. thomaslewis has joined

  381. kikuchiyo has joined

  382. kikuchiyo has left

  383. pulkomandy has joined

  384. MSavoritias (fae,ve) has left

  385. MSavoritias (fae,ve) has joined

  386. thomaslewis has left

  387. amee2k has joined

  388. kikuchiyo has joined

  389. kikuchiyo has left

  390. sonny has left

  391. kikuchiyo has joined

  392. kikuchiyo has left

  393. sonny has joined

  394. kikuchiyo has joined

  395. kikuchiyo has left

  396. kikuchiyo has joined

  397. kikuchiyo has left

  398. kikuchiyo has joined

  399. kikuchiyo has left

  400. sonny has left

  401. sonny has joined

  402. kikuchiyo has joined

  403. kikuchiyo has left

  404. Wojtek has left

  405. kikuchiyo has joined

  406. pulkomandy has left

  407. pulkomandy has joined

  408. kikuchiyo has left

  409. sonny has left

  410. marc0s has left

  411. marc0s has joined

  412. kikuchiyo has joined

  413. sonny has joined

  414. marc0s has left

  415. marc0s has joined

  416. kikuchiyo has left

  417. kikuchiyo has joined

  418. kikuchiyo has left

  419. Sam has left

  420. kikuchiyo has joined

  421. kikuchiyo has left

  422. kikuchiyo has joined

  423. kikuchiyo has left

  424. kikuchiyo has joined

  425. kikuchiyo has left

  426. kikuchiyo has joined

  427. kikuchiyo has left

  428. kikuchiyo has joined

  429. kikuchiyo has left

  430. kikuchiyo has joined

  431. kikuchiyo has left

  432. kikuchiyo has joined

  433. kikuchiyo has left

  434. nik has left

  435. kikuchiyo has joined

  436. atomicwatch has left

  437. Mx2 has left

  438. atomicwatch has joined

  439. sonny has left

  440. sonny has joined

  441. marc0s has left

  442. marc0s has joined

  443. sonny has left

  444. sonny has joined

  445. marc0s has left

  446. marc0s has joined

  447. debacle has left

  448. nik has joined

  449. Sam has joined

  450. sonny has left

  451. sonny has joined

  452. sonny has left

  453. sonny has joined

  454. Matrix Traveler (bot) has left

  455. homebeach has left

  456. homebeach has joined

  457. Matrix Traveler (bot) has joined

  458. Mx2 has joined

  459. nik has left

  460. pulkomandy has left

  461. pulkomandy has joined

  462. Laura has left

  463. marc0s has left

  464. marc0s has joined

  465. Laura has joined

  466. atomicwatch has left

  467. marc0s has left

  468. marc0s has joined

  469. marc0s has left

  470. marc0s has joined

  471. thomaslewis has joined

  472. atomicwatch has joined

  473. atomicwatch has left

  474. sonny has left

  475. atomicwatch has joined

  476. sonny has joined

  477. thomaslewis has left

  478. pulkomandy has left

  479. pulkomandy has joined

  480. Mx2 has left

  481. marc0s has left

  482. marc0s has joined

  483. Laura has left

  484. marc0s has left

  485. marc0s has joined

  486. larma has joined

  487. marc0s has left

  488. marc0s has joined

  489. nik has joined

  490. sonny has left

  491. marc0s has left

  492. marc0s has joined

  493. marc0s has left

  494. marc0s has joined

  495. Mx2 has joined

  496. Laura has joined

  497. edhelas has left

  498. edhelas has joined

  499. qwestion has joined

  500. xnamed has left

  501. debacle has joined

  502. Yagizа has left

  503. amee2k has left

  504. qwestion has left

  505. mirux has left

  506. Mx2 has left

  507. mirux has joined

  508. mirux has left

  509. mirux has joined

  510. Sam has left

  511. amee2k has joined

  512. adx has left

  513. nik has left

  514. larma has left

  515. selurvedu has joined

  516. Sam has joined

  517. mirux has left

  518. mirux has joined

  519. thomaslewis has joined

  520. thomaslewis has left

  521. Vaulor has left

  522. Vaulor has joined

  523. xnamed has joined

  524. xnamed has left

  525. Mx2 has joined

  526. Mx2 has left

  527. sonny has joined

  528. techmetx11 has left

  529. techmetx11 has joined

  530. Vaulor has left

  531. Vaulor has joined

  532. Mx2 has joined

  533. debacle has left

  534. amee2k has left

  535. amee2k has joined

  536. Mx2 has left

  537. Mx2 has joined

  538. marc0s has left

  539. marc0s has joined

  540. xnamed has joined

  541. cmb

    Am I high, or is XMPP over websockets arguably superior to XMPP over plain TCP, because XMPP over websockets has built-in framing?

  542. marc0s has left

  543. marc0s has joined

  544. lovetox

    hm sounds slower, one websocket message can only have one stanza

  545. lovetox

    with tcp i can receive multiple stanzas in one read

  546. thomaslewis has joined

  547. moparisthebest

    you could make that argument, I'd argue XMPP 2.0 should add explicit stanza framing, it's been the source of many bugs, some security issues, and I see no downsides

  548. Zash

    Is "arguably superior" arguably subjective?

  549. thomaslewis has left

  550. Zash

    WebSockets also has that weirdo XOR encoding.

  551. moparisthebest

    lovetox, I mean that's just a different level right? one TCP read can give you multiple websocket messages with multiple stanzas too

  552. Mx2 has left

  553. Zash

    WebSocket Messages can also be split into multiple frames, unless XMPP-over-WebSockets forbids that, and things enforce it...

  554. lovetox

    moparisthebest, yes i thought that as well, and it probably must be like that

  555. lovetox

    hmmm

  556. xnamed has left

  557. lovetox

    but would be weird or, like say you are a websocket lib and you call send(stanza)

  558. moparisthebest

    to be clear I'm saying I think framing is good, and that we *could* have it at the TCP/QUIC level, if we wanted it

  559. lovetox

    why would the tcp stack buffer that, and wait for "maybe something more comes i dont send this now"

  560. lovetox

    but i have no knowledge about tcp stuff, so my thinking is most likely wrong

  561. moparisthebest

    lovetox, most everything ends up writing to a buffered writer that doesn't flush until it's full or flush() is called, including websocket libs

  562. lovetox

    and who calls flush()? the tcp stack itself after some timeout?

  563. larma has joined

  564. lovetox

    im just interested i dont know how this stuff works

  565. lovetox

    i just know, i never called flush() on any buffer ever, this was always abstracted away

  566. moparisthebest

    hmm I always end up calling flush() :/

  567. Sam

    I suspect that's a source of bugs if you never call flush. You might be calling other operations that implicitly call flush, but I doubt your TCP stack is doing it for you.

  568. cmb

    My read of RFC7395 is that frames correspond one to one with stanzas, so no splitting.

  569. marc0s has left

  570. marc0s has joined

  571. Sam

    Or things are only being flushed once the buffer is full and they might sit there for a while if nobody is sending anything. There may be enough random traffic from various presences and the like that you've just never noticed it, but in theory you could suddenly have nothing sent because you're not caling flush anywhere.

  572. moparisthebest

    that's correct cmb

  573. moparisthebest

    also, what Sam said ^

  574. marc0s has left

  575. lovetox

    Sam, im pretty sure this is abstracted away

  576. marc0s has joined

  577. lovetox

    if i use something like GLib, you have no access to any tcp buffers

  578. lovetox

    you have simple methods like write_async()

  579. lovetox

    and it gives you a callback when its done

  580. moparisthebest

    if the library abstracts it away then it's wasteful in some cases because it has to call flush() on every write

  581. Sam

    Hmm, yah, looks like Python doesn't let you be explicit about it? I dunno, just doing a quick look at the library

  582. moparisthebest

    but, it's an ok trade-off

  583. Mx2 has joined

  584. lovetox

    so what do you do? sounds like you also call flush() all the time :D

  585. mirux has left

  586. lovetox

    or whats the other solution? add a milisecond timeout on every write, and wait for more data?

  587. mirux has joined

  588. moparisthebest

    I... call it when I need to

  589. moparisthebest

    sometimes I send a few stanzas and *then* call flush, sometimes after each stanza

  590. lovetox

    yeah but how to determine that you need to call flush after one stanza?

  591. lovetox

    i mean apart from obvious stuff like stream setup

  592. moparisthebest

    if I need it sent *now* I call flush

  593. lovetox

    ok and if you dont need to send it now? you wait for something that needs sending now? or you wait a certain time?

  594. moparisthebest

    wait for something that needs sending now to come along

  595. moparisthebest

    you could set some type of timer I guess...

  596. lovetox

    ok and is a user written message stanza a category "needs sending now"?

  597. lovetox

    or only stuff like stream header , sasl responses etc

  598. moparisthebest

    I would say a user written message is "needs sending now"

  599. moparisthebest

    maybe like a read notification might not be ?

  600. lovetox

    you seem kind of vague, i thought you have written a lib that applies that logic

  601. lovetox

    or is that something which you leave to the application layer to decide

  602. moparisthebest

    well I haven't written an xmpp client yet :)

  603. lovetox

    ok, so back to websocket

  604. moparisthebest

    just a lot of networking code over the years

  605. lovetox

    what i like about the standard tcp connection way is, that i dont need dns or any other mechanism to connect to the server

  606. lovetox

    it the worst case its just ip:5222

  607. lovetox

    do we have this for websocket?

  608. moparisthebest

    kinda, you just grab https://domain/.well-known/host-meta.json and connect to whatever that says

  609. lovetox

    so the xmpp server needs to run a http server

  610. moparisthebest

    websocket is already an http server

  611. moparisthebest

    but, yes

  612. lovetox

    websocket is probably also more complicated to setup if you want to serve a normal webpage on 443

  613. moparisthebest

    well it can be on any domain/port, doesn't *need* to be on the same one

  614. lovetox

    hm thats all that comes to mind for me

  615. lovetox

    on the client side, websocket is much easier

  616. lovetox

    like 1/3 of the code of normal tcp impl

  617. moparisthebest

    FYI I'll soon write a XEP to expand host-meta.json to support Direct TLS, QUIC, pinned-public-keys, encrypted-client-hello, etc https://github.com/moparisthebest/xmpp-proxy/blob/master/contrib/host-meta/xep-0156-proposed-minimal.json

  618. moparisthebest

    then you only need to grab that document and skip DNS, POSH etc

  619. pulkomandy has left

  620. pulkomandy has joined

  621. atomicwatch has left

  622. Vaulor has left

  623. edhelas has left

  624. atomicwatch has joined

  625. edhelas has joined

  626. Mx2 has left

  627. xnamed has joined

  628. hearty has left

  629. mh has left

  630. hearty has joined

  631. mh has joined

  632. Mx2 has joined

  633. xnamed has left

  634. xnamed has joined

  635. xnamed has left

  636. Matrix Traveler (bot) has left

  637. homebeach has left

  638. amee2k has left

  639. homebeach has joined

  640. Matrix Traveler (bot) has joined

  641. xnamed has joined

  642. mirux has left

  643. MSavoritias (fae,ve) has left

  644. kikuchiyo has left

  645. kikuchiyo has joined

  646. atomicwatch has left

  647. kikuchiyo has left

  648. kikuchiyo has joined

  649. Vaulor has joined

  650. kikuchiyo has left

  651. marc0s has left

  652. marc0s has joined

  653. PapaTutuWawa has left

  654. pasdesushi has left

  655. kikuchiyo has joined

  656. kapad has joined

  657. adx has joined

  658. larma has left

  659. Mx2 has left

  660. Mx2 has joined

  661. goffi has left

  662. sonny has left

  663. sonny has joined

  664. kikuchiyo has left

  665. nik has joined

  666. rubi has left

  667. rubi has joined

  668. xnamed has left

  669. kikuchiyo has joined

  670. Schimon_ has left

  671. Beherit has left

  672. wurstsalat has left

  673. adx has left

  674. rubi has left

  675. rubi has joined

  676. inky has left

  677. nik has left

  678. sonny has left

  679. sonny has joined

  680. pulkomandy has left

  681. pulkomandy has joined

  682. rubi has left

  683. rubi has joined

  684. marc0s has left

  685. marc0s has joined

  686. selurvedu has left

  687. kikuchiyo has left

  688. kikuchiyo has joined

  689. rubi has left

  690. rubi has joined

  691. rubi has left

  692. marc0s has left

  693. marc0s has joined

  694. rubi has joined