Skip to content

Commit 694e4f6

Browse files
committed
Add artificial delay in DTMD
1 parent 41282bb commit 694e4f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/multimaster/dtmd/src/server.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ static bool stream_flush(stream_t stream) {
171171
/* nothing to do */
172172
return true;
173173
}
174+
{
175+
struct timespec ts;
176+
ts.tv_sec = 0;
177+
ts.tv_nsec = 100000; /* 100usec */
178+
nanosleep(&ts, NULL);
179+
}
174180
char *cursor = stream->output.data;
175181
while (tosend > 0) {
176182
/* repeat sending until we send everything */

0 commit comments

Comments
 (0)