{"action":"closed","issue":{"url":"https://api.github.com/repos/webrtc/samples/issues/670","labels_url":"https://api.github.com/repos/webrtc/samples/issues/670/labels{/name}","comments_url":"https://api.github.com/repos/webrtc/samples/issues/670/comments","events_url":"https://api.github.com/repos/webrtc/samples/issues/670/events","html_url":"https://github.com/webrtc/samples/issues/670","id":112911159,"number":670,"title":"Empty file transfer freezes data channel","user":{"login":"cvranjani","id":15255941,"avatar_url":"https://avatars.githubusercontent.com/u/15255941?v=3","gravatar_id":"","url":"https://api.github.com/users/cvranjani","html_url":"https://github.com/cvranjani","followers_url":"https://api.github.com/users/cvranjani/followers","following_url":"https://api.github.com/users/cvranjani/following{/other_user}","gists_url":"https://api.github.com/users/cvranjani/gists{/gist_id}","starred_url":"https://api.github.com/users/cvranjani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvranjani/subscriptions","organizations_url":"https://api.github.com/users/cvranjani/orgs","repos_url":"https://api.github.com/users/cvranjani/repos","events_url":"https://api.github.com/users/cvranjani/events{/privacy}","received_events_url":"https://api.github.com/users/cvranjani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T23:25:10Z","updated_at":"2015-11-02T16:24:30Z","closed_at":"2015-11-02T16:24:30Z","body":"Repro steps:\r\n\r\n1. Navigate to https://webrtc.github.io/samples/src/content/datachannel/filetransfer/\r\n2. Click on 'Choose file'  and upload an empty file (file with no contents). Please see the attached empty file.txt\r\n3. Observe that 'Send progress' and 'Receive progress' are not shown and no data transfer happens\r\nhttps://screenshot.googleplex.com/1psw89qWuRk.png\r\n4. Console(Javascript) logs shows that data channels are open\r\n\r\nExpected result: \r\nFile transfer should happen even when file does not have any contents and data channel should be closed after the transfer\r\n\r\nActual result:\r\nFile is not transferred when there are no contents and data channel is kept open indefinitely. \r\n'Choose file' button is frozen making users unable to upload another file.\r\nhttps://screenshot.googleplex.com/1psw89qWuRk.png\r\n\r\nChrome version: \r\n46.0.2490.71 (Official Build) (64-bit)\r\n\r\nOS:\r\nLinux Desktop\r\n\r\nLogs:\r\nThis appears to be Chrome\r\ncommon.js:8 7.170: Created local peer connection object localConnection\r\ncommon.js:8 7.171: Created send data channel\r\ncommon.js:8 7.172: Created remote peer connection object remoteConnection\r\ncommon.js:8 7.175: Offer from localConnection \r\nv=0\r\no=- 3047940909882059690 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:OqwkB8YTXHr/Ao2+\r\na=ice-pwd:5aitgQaLhWTdFoRVXcENVQ8Y\r\na=fingerprint:sha-256 DC:19:3B:3C:50:FB:6A:A9:E1:9B:FE:E0:D5:8B:B7:BD:5F:A6:19:EE:BE:95:B2:2A:F5:DC:FB:9B:51:E2:9D:E5\r\na=setup:actpass\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\ncommon.js:8 7.176: Answer from remoteConnection \r\nv=0\r\no=- 8820750149763377843 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\nb=AS:30\r\na=ice-ufrag:iy70e0O7g0+lCTGo\r\na=ice-pwd:3mgODL11WI94Qys9wWhUMuVQ\r\na=fingerprint:sha-256 DC:19:3B:3C:50:FB:6A:A9:E1:9B:FE:E0:D5:8B:B7:BD:5F:A6:19:EE:BE:95:B2:2A:F5:DC:FB:9B:51:E2:9D:E5\r\na=setup:active\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\ncommon.js:8 7.176: local ice callback\r\ncommon.js:8 7.176: Local ICE candidate: \r\ncandidate:2498979306 1 udp 2122262783 2620:0:1000:1502:788c:378:5d92:d93f 52232 typ host generation 0\r\ncommon.js:8 7.176: local ice callback\r\ncommon.js:8 7.177: Local ICE candidate: \r\ncandidate:2614814290 1 udp 2122194687 172.22.104.141 44320 typ host generation 0\r\ncommon.js:8 7.177: AddIceCandidate success.\r\ncommon.js:8 7.178: AddIceCandidate success.\r\ncommon.js:8 7.178: remote ice callback\r\ncommon.js:8 7.178: Remote ICE candidate: \r\n candidate:2498979306 1 udp 2122262783 2620:0:1000:1502:788c:378:5d92:d93f 58448 typ host generation 0\r\ncommon.js:8 7.179: remote ice callback\r\ncommon.js:8 7.179: Remote ICE candidate: \r\n candidate:2614814290 1 udp 2122194687 172.22.104.141 34539 typ host generation 0\r\n2common.js:8 7.180: AddIceCandidate success.\r\ncommon.js:8 7.224: local ice callback\r\ncommon.js:8 7.224: remote ice callback\r\ncommon.js:8 7.227: Send channel state is: open\r\ncommon.js:8 7.228: file is -emptyfile.txt 0 text/plain Thu Oct 22 2015 15:35:25 GMT-0700 (PDT)\r\ncommon.js:8 7.228: Receive Channel Callback\r\ncommon.js:8 7.229: Receive channel state is: open"}}