Fossil SCM

Fix a boundary case in the SSH link startup logic.

drh 2012-11-12 15:22 trunk
Commit 5776dfad81d08ee5634db43928a33a7ea08bc0e9
1 file changed +4
--- src/http_transport.c
+++ src/http_transport.c
@@ -156,10 +156,14 @@
156156
if( g.fSshTrace ){
157157
printf("Sent: [echo %s]\n", zProbe);
158158
fflush(stdout);
159159
}
160160
sshin_read(zIn, nBuf);
161
+ if( zIn[0]==0 ){
162
+ sqlite3_sleep(250);
163
+ sshin_read(zIn, nBuf);
164
+ }
161165
if( g.fSshTrace ){
162166
printf("Got back-----------------------------------------------\n"
163167
"%s\n"
164168
"-------------------------------------------------------\n", zIn);
165169
}
166170
--- src/http_transport.c
+++ src/http_transport.c
@@ -156,10 +156,14 @@
156 if( g.fSshTrace ){
157 printf("Sent: [echo %s]\n", zProbe);
158 fflush(stdout);
159 }
160 sshin_read(zIn, nBuf);
 
 
 
 
161 if( g.fSshTrace ){
162 printf("Got back-----------------------------------------------\n"
163 "%s\n"
164 "-------------------------------------------------------\n", zIn);
165 }
166
--- src/http_transport.c
+++ src/http_transport.c
@@ -156,10 +156,14 @@
156 if( g.fSshTrace ){
157 printf("Sent: [echo %s]\n", zProbe);
158 fflush(stdout);
159 }
160 sshin_read(zIn, nBuf);
161 if( zIn[0]==0 ){
162 sqlite3_sleep(250);
163 sshin_read(zIn, nBuf);
164 }
165 if( g.fSshTrace ){
166 printf("Got back-----------------------------------------------\n"
167 "%s\n"
168 "-------------------------------------------------------\n", zIn);
169 }
170

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button