Implemented strict http request serialization for APIs that forbid a session to be used in concurrent requests (e.g. dedimania).
Updated all API requests in DedimaniaPlugin to be serialized by this mechanism. Closes #139.
This commit is contained in:
		| @@ -217,4 +217,12 @@ class RequestsQueue extends EventDispatcher implements RequestsQueueInterface, \ | ||||
| 		} | ||||
| 		return curl_multi_select($this->mh, $timeout) !== -1; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @param $option | ||||
| 	 * @param $value | ||||
| 	 */ | ||||
| 	public function setOption($option, $value) { | ||||
| 		curl_multi_setopt($this->mh, $option, $value); | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user