dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
Rickmasta has joined #cinch
Azure has quit [Remote host closed the connection]
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #cinch
<ToasterKTN> !* cmd exec gem update cinch
<ToasterKTN> opps wrong channel sry :-D
<dominikh> indeed.
<ToasterKTN> Good morning. For smaller files up to 120k it seems to work now. Bigger files, i get Broken Pipes / Con resets but no Exception on cinch. it seems the bot closes the connection ebfore everything is transfered..
<dominikh> that seems unlikely
<ToasterKTN> It says - II DCC: Outgoing DCC SEND: File name: syslog-47120101T0000.txt - Size: 256394B - IP: 10.1.0.1 - Port: 36703 - Status: done
<dominikh> well, is that the correct size?
<ToasterKTN> rw-r--r-- 1 root root 256394 Apr 26 07:30 /tmp/syslogpart
<ToasterKTN> received 158224
<ToasterKTN> on Java this happens to me if i dont flush my streams, before i close it. :-X
<ToasterKTN> I am on a remote side, not on the same net. so it may be some kind of "timing" issue. from stock clients it seems to work. :(
<dominikh> what's the receiver?
<dominikh> sending 1 GB locally works, as does sending 1 GB locally very slowly.
<dominikh> have you tried a different client?
<ToasterKTN> i use LimeChat for me as client.
<ToasterKTN> Lemme retry with XChat
<dominikh> I do see a bug in the code.
<ToasterKTN> Same... * DCC RECV syslog-47120101T0000.txt von ctsprdfiw101 gescheitert. (Connection reset by peer).
<dominikh> give me a sec
<dominikh> can you clone from git, check out the dcc-bugfix branch and test that?
<ToasterKTN> On it.. lemme test
<ToasterKTN> Hmm.. Seems to break now on the last 16k or so.. i receive like 300/315k , 114/131k and sometimes... 2 out of 20 it works :-D
<dominikh> are you sure you're running the new version from the right branch?
<dominikh> can you have the bot send me a file?
<ToasterKTN> Its on a corporate network via VPN. So i guess no. Bu i can send you my few lines for the plugin if that helps
<dominikh> how likely is it that the network connection is unreliable?
<ToasterKTN> unlikly, i transfer gigs per day over this conns, without problems
<ToasterKTN> lemme test a very big file.. like a gig to see if it breaks at the end
<ToasterKTN> Hihi.. Well I am sorry man. But if i transfer 210MB i reveice 209MB. To be exact: Send 219291713 / receive 218997594 missing
<dominikh> fwiw, "breaks at the end" isn't an accurate diagnosis. for example the bug I just fixed would lose data in the middle of the transfer, not at the end.
<dominikh> so optimally, you'd compare the two files and see where data is missing
<ToasterKTN> Well thats a binary. But the smallers 300K Files are syslogs. and they are broken at the end.. they stop like in the middle of a log line
<ToasterKTN> And it differs.. i retransfered a few time the big files.. best transfer was up to 219251233
<ToasterKTN> I retry with XChat. to make sure its not the client...
<ToasterKTN> Same with other clients.. :(( (Connection reset by peer)
<dominikh> well I'm sorry, but I can't spot anything wrong with the code. I have no idea what the issue is
<ToasterKTN> I will make some tcp inspection to see what happens. Maybe i see something..
<dominikh> ToasterKTN: try replacing ws.first.write with ws.first.send and see if it makes any difference whatsoever
<ToasterKTN> Yeah, that differs.. now i get 0 Bytes :-D
<dominikh> at least it's a consistent result
<ToasterKTN> /var/lib/gems/1.9.1/gems/cinch-2.3.2/lib/cinch/dcc/outgoing/send.rb:109:in `send': wrong number of arguments (1 for 2..3) (ArgumentError)
<dominikh> try send(chunk, 0)
<dominikh> instead of send(chunk)
<ToasterKTN> Same problem as before.. i got 208/209MB
<dominikh> no idea then. also I'm going to bed now, so we'll have to talk later.
<ToasterKTN> Good night, and thanks for your support. i will do some investigation..
<dominikh> good luck. bye.
<ToasterKTN> !ctsprdsup001 syslog 1000
<ToasterKTN> !ctsprdsup001 syslog 1000
<ToasterKTN> sry :-D
greenbigfrog has quit [Ping timeout: 250 seconds]
greenbigfrog has joined #cinch
greenbigfrog has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenbigfrog has joined #cinch
greenbigfrog has quit [Ping timeout: 250 seconds]
greenbigfrog has joined #cinch
greenbigfrog has quit [Ping timeout: 268 seconds]
<ToasterKTN> @dominikh This works for me. even for very large > 1GB Files. But it misses Timeouts / Resends and Data checks. Seems if i wait for the answer of each packet, it works perfectly... https://github.com/ToasterKTN/cinch/blob/master/lib/cinch/dcc/outgoing/send.rb
greenbigfrog has joined #cinch
<ToasterKTN> Because i have no clue on ruby, i did not yet find a clean way to backout, if con breaks or if a packet gets missed. as i understud the whitepapers, the bytes i get back are a 32bit int with the amount of data received. Would be nice to check that.
Rickmasta has joined #cinch
greenbigfrog has quit [Quit: The server of my BNC just shutdown or got killed!!!]
tinnvec has quit [Ping timeout: 268 seconds]
tinnvec has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenbigfrog has joined #cinch
Rickmasta has joined #cinch
<dominikh> The acks in DCC are entirely useless and slow down transfers a lot. They aren't numbered, so you can't recover. All modern clients pretty much ignore them
<ToasterKTN> @dominikh Yeah i checked a few of them... most client dont seems to run like that
<ToasterKTN> this is kinda annoying.. 30 years old standards, and still not usefull :-D
<ToasterKTN> well i guess i will kinda upload shit to a webserver and post a link to my clients :-X
Gizmokid2005 has quit [Quit: Uh-oh!! The Gizmo is gone!!!! Good Riddance.]
Gizmokid2005 has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ToasterKTN has quit [Remote host closed the connection]
ToasterK_ has joined #cinch
ToasterK_ is now known as ToasterKTN
Azure has joined #cinch
Rickmasta has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch