Changeset 11121 for trunk/FACT++/dim/src/tcpip.c
- Timestamp:
- 06/22/11 22:18:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/tcpip.c
r11071 r11121 34 34 #else 35 35 /* 36 #define closesock(s) shutdown(s,2) ;37 */ 38 #define closesock close36 #define closesock(s) shutdown(s,2) 37 */ 38 #define closesock(s) close(s) 39 39 #define readsock(a,b,c,d) read(a,b,c) 40 40 … … 990 990 Net_conns[conn_id].reading = -1; 991 991 Net_conns[conn_id].timr_ent = NULL; 992 Net_conns[conn_id].write_timedout = 0; 992 993 return(1); 993 994 } … … 1114 1115 Net_conns[conn_id].reading = -1; 1115 1116 Net_conns[conn_id].timr_ent = NULL; 1117 Net_conns[conn_id].write_timedout = 0; 1116 1118 return(1); 1117 1119 } … … 1188 1190 Net_conns[conn_id].reading = -1; 1189 1191 Net_conns[conn_id].timr_ent = NULL; 1192 Net_conns[conn_id].write_timedout = 0; 1190 1193 return(1); 1191 1194 } … … 1279 1282 } 1280 1283 else 1284 { 1281 1285 return(0); 1286 } 1287 } 1288 if(wrote == -1) 1289 { 1290 Net_conns[conn_id].write_timedout = 1; 1282 1291 } 1283 1292 return(wrote); … … 1300 1309 Net_conns[conn_id].task[0] = 0; 1301 1310 if(channel) 1311 { 1312 if(Net_conns[conn_id].write_timedout) 1313 { 1314 Net_conns[conn_id].write_timedout = 0; 1315 #if defined(__linux__) && !defined (darwin) 1316 shutdown(channel, 2); 1317 #endif 1318 } 1302 1319 closesock(channel); 1320 } 1303 1321 return(1); 1304 1322 }
Note:
See TracChangeset
for help on using the changeset viewer.