blocking mode with select() and bufsize=1, buggy in python 2.x: close() does not notify select() for EOF
|
|
||
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
28 |
|
29 |
|
|
|
|
29 |
|
|
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
32 |
|
|
|
||
226 |
|
226 |
|
227 |
|
227 |
|
228 |
|
228 |
|
229 |
|
|
|
230 |
|
|
|
|
229 |
|
|
|
230 |
|
|
|
231 |
|
|
231 |
|
232 |
|
232 |
|
233 |
|
233 |
|
234 |
|
234 |
|
|
|
235 |
|
|
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
236 |
|
239 |
|
237 |
|
|
|
238 |
|
|
|
|
240 |
|
|
|
241 |
|
|
239 |
|
242 |
|
240 |
|
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
255 |
|
256 |
|
256 |
|
257 |
|
257 |
|
258 |
|
258 |
|
|
|
259 |
|
|
|
260 |
|
|
|
|
259 |
|
|
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
|
|
|
269 |
|
|
|
270 |
|
|
|
271 |
|
|
|
272 |
|
|
|
273 |
|
|
|
274 |
|
|
|
275 |
|
|
261 |
|
276 |
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
277 |
|
268 |
|
278 |
|
269 |
|
279 |
|
|
|
||
283 |
|
293 |
|
284 |
|
294 |
|
285 |
|
295 |
|
|
296 |
|
|
286 |
|
297 |
|
287 |
|
298 |
|
288 |
|
|
|
|
299 |
|
|
289 |
|
300 |
|
290 |
|
301 |
|
291 |
|
302 |
|