Commit 36ec92c
committed
ext/openssl/xp_ssl: eliminate poll() when MSG_DONTWAIT is available
If there is a zero timeout and MSG_DONTWAIT is available (or the
socket is non-blocking), the poll() call is not necessary, and we can
just call recv() right away.1 parent 42817cf commit 36ec92c
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
2395 | 2399 | | |
2396 | 2400 | | |
2397 | 2401 | | |
2398 | | - | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
2399 | 2406 | | |
2400 | 2407 | | |
2401 | 2408 | | |
| |||
2413 | 2420 | | |
2414 | 2421 | | |
2415 | 2422 | | |
2416 | | - | |
| 2423 | + | |
2417 | 2424 | | |
2418 | 2425 | | |
2419 | 2426 | | |
| |||
0 commit comments