# Simultaneous upload and download within single sync folder

**URL:** https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030
**Category:** General
**Created:** [July 3, 2015, 7:42am UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030 "2015-07-03T07:42:17Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![VIP00](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@VIP00](https://forum.syncthing.net/u/VIP00)
#### Post date: [July 3, 2015, 7:42am UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/1 "2015-07-03T07:42:17Z")

</div>

Not quite a support issue, just curious!

I have a single synced folder across two devices. If I add different files to this folder on the two devices, syncthing seems to scan one device, upload all the new stuff from that one, then scan the other and upload all the new stuff from that one. It seems like there is a large amount of time spent waiting for the one upload to complete rather than using the connection in both directions simultaneously.

Is this intended behavior? Can this be modified?

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 3, 2015, 9:17am UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/2 "2015-07-03T09:17:37Z")

</div>

It can upload and download simultaneously, it cannot scan and download simultaneously because you are modifying the state while you are validating it, which means you can step on your own toes.

---

<div class="post-metadata">

### Author: ![VIP00](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@VIP00](https://forum.syncthing.net/u/VIP00)
#### Post date: [July 3, 2015, 3:11pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/3 "2015-07-03T15:11:12Z")

</div>

I see, that makes sense. Is there a way to force the downloading client to stop and scan its files?

It seems that if both clients have new files, it would be more efficient to scan both sides before beginning the transfer.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 3, 2015, 3:22pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/4 "2015-07-03T15:22:51Z")

</div>

No there is not a way, apart from pulling the cable to cause failure or restarting syncthing.

---

<div class="post-metadata">

### Author: ![VIP00](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@VIP00](https://forum.syncthing.net/u/VIP00)
#### Post date: [July 3, 2015, 5:16pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/5 "2015-07-03T17:16:18Z")

</div>

Restarting Syncthing got it to rescan both sides, but it still seems to be uploading or downloading one file at a time rather than simultaneously exchanging new files.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 3, 2015, 5:30pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/6 "2015-07-03T17:30:34Z")

</div>

How do you know that? It downloads one file at a time, which might give you that impression.

---

<div class="post-metadata">

### Author: ![VIP00](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@VIP00](https://forum.syncthing.net/u/VIP00)
#### Post date: [July 3, 2015, 5:48pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/7 "2015-07-03T17:48:45Z")

</div>

The download rate shows ~2 MiB/s, but the upload shows under 5 KiB/s, so there’s no real simultaneous uploading going on.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 3, 2015, 7:54pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/8 "2015-07-03T19:54:59Z")

</div>

The rates are a sampled average over 10 seconds, so it all depends on the size of the file you are using. You can use iptraf or some verbose logging to see what’s actually happening.

---

<div class="post-metadata">

### Author: ![VIP00](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@VIP00](https://forum.syncthing.net/u/VIP00)
#### Post date: [July 3, 2015, 8:03pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/9 "2015-07-03T20:03:17Z")

</div>

In this instance I’m using 2 folder of compressed archives split into ~650 mb pieces each (old habit from the days of backing up onto CDs), with folders containing between 50 and 100 files on each side. I don’t think the issue has anything to do with file size and averaged sampling, but I will look into iptraf to get a better idea. Thank you for the suggestion!

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [July 3, 2015, 8:08pm UTC](https://forum.syncthing.net/t/simultaneous-upload-and-download-within-single-sync-folder/5030/10 "2015-07-03T20:08:23Z")

</div>

The other thing is, that you have to rescan for the both ends to realize that there is a new file both sides for that to happen. So at the point you add the files on both ends, rescan simultaneously.
