Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

ssl - cURL/PHP Request Executes 50% of the Time -


after searching over, can't understand why curl requests issued remote ssl-enabled host successful 50% or of time in case. here's situation: have sequence of curl requests, of them issued https remote host, within single php script run using php cli. when run script requests execute successfully, reason of times run following error curl:

* connect() www.virginia.edu port 443 (#0) *   trying 128.143.22.36... * connected * connected www.virginia.edu (128.143.22.36) port 443 (#0) * set certificate verify locations: *   cafile: none   capath: /etc/ssl/certs * error:140943fc:ssl routines:ssl3_read_bytes:sslv3 alert bad record mac * closing connection #0 

if try again few times same result, after few tries requests go through successfully. running script after again results in error, , pattern continues. researching error 'alert bad record mac' didn't give me helpful, , hesitate blame on ssl issue since script still runs occasionally.

i'm on ubuntu server 10.04, php5 , php5-curl installed, latest version of openssl. in terms of curl specific options, curlopt_ssl_verifypeer set false, , both curlopt_timeout , curlopt_connecttimeout set 4 seconds. further illustrating problem fact same exact situation occurs on mac os x dev machine - requests go through ~50% of time.

the remote host maybe not real unique host. maybe it's sort of load balancing solution several servers taking incoming requests. make me think 'mac error' in error message. mean remote host mac address changed while ssl negociation still running. , explain not have problem.

but maybe not :-) ssl problems quite hard find.

i not understand answer on prefork mpm vs worker mpm, if run php in cli mode apache mpm not used, you're not using apache.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -