Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Set NOPROGRESS for pycurl just as same as default operation in pycurl module itself. |
| 2 | If set NOPROGRESS with 0 for pycurl, it causes dead lock issue of Python GIL when |
| 3 | call smart library by python gui just like pygtk. |
| 4 | |
| 5 | Upstream-Status: Pending |
| 6 | |
| 7 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 8 | --- |
| 9 | diff -u smart-1.4.1/smart.orig/fetcher.py smart-1.4.1/smart/fetcher.py |
| 10 | --- smart-1.4.1/smart.orig/fetcher.py 2014-07-15 16:42:19.240437080 +0800 |
| 11 | +++ smart-1.4.1/smart/fetcher.py 2014-07-15 17:02:37.812470289 +0800 |
| 12 | @@ -1720,7 +1720,7 @@ |
| 13 | handle.setopt(pycurl.OPT_FILETIME, 1) |
| 14 | handle.setopt(pycurl.LOW_SPEED_LIMIT, 1) |
| 15 | handle.setopt(pycurl.LOW_SPEED_TIME, SOCKETTIMEOUT) |
| 16 | - handle.setopt(pycurl.NOPROGRESS, 0) |
| 17 | + handle.setopt(pycurl.NOPROGRESS, 1) |
| 18 | handle.setopt(pycurl.PROGRESSFUNCTION, progress) |
| 19 | handle.setopt(pycurl.WRITEDATA, local) |
| 20 | handle.setopt(pycurl.FOLLOWLOCATION, 1) |