passenger 3.0.7 → 3.0.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

Files changed (439) hide show
  1. data/NEWS +27 -0
  2. data/README +1 -1
  3. data/bin/passenger-install-nginx-module +3 -1
  4. data/build/config.rb +2 -1
  5. data/build/cxx_tests.rb +7 -3
  6. data/build/documentation.rb +5 -40
  7. data/build/nginx.rb +0 -1
  8. data/build/packaging.rb +0 -6
  9. data/build/rake_extensions.rb +5 -0
  10. data/doc/Architectural overview.html +344 -77
  11. data/doc/Security of user switching support.html +338 -71
  12. data/doc/Users guide Apache with comments.html +4830 -0
  13. data/doc/Users guide Apache.html +695 -428
  14. data/doc/Users guide Apache.idmap.txt +80 -0
  15. data/doc/Users guide Apache.txt +5 -5
  16. data/doc/Users guide Nginx.html +591 -313
  17. data/doc/Users guide Nginx.txt +9 -3
  18. data/doc/Users guide Standalone.html +344 -77
  19. data/ext/boost/src/pthread/thread.cpp +1 -1
  20. data/ext/common/AccountsDatabase.h +1 -1
  21. data/ext/common/Constants.h +2 -2
  22. data/ext/common/Logging.h +2 -1
  23. data/ext/common/LoggingAgent/FilterSupport.h +107 -3
  24. data/ext/common/Session.h +1 -1
  25. data/ext/common/Utils.cpp +2 -0
  26. data/ext/common/Utils/Dechunker.h +232 -0
  27. data/ext/common/Utils/HttpHeaderBufferer.h +165 -0
  28. data/ext/common/Utils/StrIntUtils.cpp +51 -15
  29. data/ext/common/Utils/StrIntUtils.h +3 -0
  30. data/ext/common/Utils/StreamBoyerMooreHorspool.h +506 -0
  31. data/ext/nginx/Configuration.c +36 -282
  32. data/ext/nginx/ContentHandler.c +17 -0
  33. data/ext/nginx/HelperAgent.cpp +397 -39
  34. data/ext/oxt/tracable_exception.cpp +3 -1
  35. data/ext/ruby/extconf.rb +1 -0
  36. data/ext/ruby/passenger_native_support.c +3 -0
  37. data/helper-scripts/prespawn +113 -31
  38. data/lib/phusion_passenger.rb +2 -2
  39. data/lib/phusion_passenger/standalone/runtime_installer.rb +3 -2
  40. data/lib/phusion_passenger/standalone/start_command.rb +12 -12
  41. data/test/cxx/DechunkerTest.cpp +216 -0
  42. data/test/cxx/FilterSupportTest.cpp +31 -4
  43. data/test/cxx/HttpHeaderBuffererTest.cpp +203 -0
  44. data/test/cxx/UtilsTest.cpp +46 -3
  45. data/test/integration_tests/hello_world_rack_spec.rb +7 -0
  46. data/test/stub/rack/config.ru +6 -1
  47. data/test/stub/rails_apps/1.2/empty/public/dispatch.cgi +1 -1
  48. data/test/stub/rails_apps/1.2/empty/public/dispatch.fcgi +1 -1
  49. data/test/stub/rails_apps/1.2/empty/public/dispatch.rb +1 -1
  50. data/test/stub/rails_apps/2.0/empty/public/dispatch.cgi +1 -1
  51. data/test/stub/rails_apps/2.0/empty/public/dispatch.fcgi +1 -1
  52. data/test/stub/rails_apps/2.0/empty/public/dispatch.rb +1 -1
  53. data/test/stub/rails_apps/2.2/empty/public/dispatch.cgi +1 -1
  54. data/test/stub/rails_apps/2.2/empty/public/dispatch.fcgi +1 -1
  55. data/test/stub/rails_apps/2.2/empty/public/dispatch.rb +1 -1
  56. metadata +20 -403
  57. data/doc/Doxyfile +0 -241
  58. data/doc/cxxapi/AbstractSpawnManager_8h_source.html +0 -141
  59. data/doc/cxxapi/Account_8h_source.html +0 -206
  60. data/doc/cxxapi/AccountsDatabase_8h_source.html +0 -161
  61. data/doc/cxxapi/AgentBase_8h_source.html +0 -70
  62. data/doc/cxxapi/AgentsStarter_8h_source.html +0 -112
  63. data/doc/cxxapi/BCrypt_8h_source.html +0 -104
  64. data/doc/cxxapi/Blowfish_8h_source.html +0 -134
  65. data/doc/cxxapi/Bucket_8h_source.html +0 -118
  66. data/doc/cxxapi/Constants_8h_source.html +0 -79
  67. data/doc/cxxapi/ContentHandler_8h_source.html +0 -95
  68. data/doc/cxxapi/DirectoryMapper_8h_source.html +0 -311
  69. data/doc/cxxapi/EventedClient_8h_source.html +0 -733
  70. data/doc/cxxapi/EventedMessageServer_8h_source.html +0 -358
  71. data/doc/cxxapi/EventedServer_8h_source.html +0 -326
  72. data/doc/cxxapi/Exceptions_8h_source.html +0 -393
  73. data/doc/cxxapi/FileDescriptor_8h_source.html +0 -324
  74. data/doc/cxxapi/Hooks_8h_source.html +0 -76
  75. data/doc/cxxapi/HttpStatusExtractor_8h_source.html +0 -382
  76. data/doc/cxxapi/IniFile_8h_source.html +0 -527
  77. data/doc/cxxapi/Logging_8h_source.html +0 -796
  78. data/doc/cxxapi/MessageChannel_8h_source.html +0 -776
  79. data/doc/cxxapi/MessageClient_8h_source.html +0 -328
  80. data/doc/cxxapi/MessageReadersWriters_8h_source.html +0 -539
  81. data/doc/cxxapi/MessageServer_8h_source.html +0 -612
  82. data/doc/cxxapi/PoolOptions_8h_source.html +0 -549
  83. data/doc/cxxapi/Process_8h_source.html +0 -286
  84. data/doc/cxxapi/RandomGenerator_8h_source.html +0 -191
  85. data/doc/cxxapi/ResourceLocator_8h_source.html +0 -166
  86. data/doc/cxxapi/SafeLibev_8h_source.html +0 -180
  87. data/doc/cxxapi/ScgiRequestParser_8h_source.html +0 -406
  88. data/doc/cxxapi/ServerInstanceDir_8h_source.html +0 -378
  89. data/doc/cxxapi/Session_8h_source.html +0 -501
  90. data/doc/cxxapi/SpawnManager_8h_source.html +0 -647
  91. data/doc/cxxapi/StaticContentHandler_8h_source.html +0 -69
  92. data/doc/cxxapi/StaticString_8h_source.html +0 -329
  93. data/doc/cxxapi/StringListCreator_8h_source.html +0 -114
  94. data/doc/cxxapi/Utils_8h_source.html +0 -469
  95. data/doc/cxxapi/annotated.html +0 -87
  96. data/doc/cxxapi/apache2_2Configuration_8h_source.html +0 -82
  97. data/doc/cxxapi/classAgentWatcher-members.html +0 -54
  98. data/doc/cxxapi/classAgentWatcher.html +0 -419
  99. data/doc/cxxapi/classClient-members.html +0 -38
  100. data/doc/cxxapi/classClient.html +0 -123
  101. data/doc/cxxapi/classHooks-members.html +0 -40
  102. data/doc/cxxapi/classHooks.html +0 -153
  103. data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager-members.html +0 -40
  104. data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager.html +0 -187
  105. data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager__inherit__graph.map +0 -3
  106. data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager__inherit__graph.md5 +0 -1
  107. data/doc/cxxapi/classPassenger_1_1AbstractSpawnManager__inherit__graph.png +0 -0
  108. data/doc/cxxapi/classPassenger_1_1ArgumentException-members.html +0 -36
  109. data/doc/cxxapi/classPassenger_1_1ArgumentException.html +0 -56
  110. data/doc/cxxapi/classPassenger_1_1ArrayMessage-members.html +0 -37
  111. data/doc/cxxapi/classPassenger_1_1ArrayMessage.html +0 -113
  112. data/doc/cxxapi/classPassenger_1_1BufferedUpload-members.html +0 -38
  113. data/doc/cxxapi/classPassenger_1_1BufferedUpload.html +0 -112
  114. data/doc/cxxapi/classPassenger_1_1BusyException-members.html +0 -36
  115. data/doc/cxxapi/classPassenger_1_1BusyException.html +0 -54
  116. data/doc/cxxapi/classPassenger_1_1ConfigurationException-members.html +0 -36
  117. data/doc/cxxapi/classPassenger_1_1ConfigurationException.html +0 -51
  118. data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +0 -41
  119. data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +0 -223
  120. data/doc/cxxapi/classPassenger_1_1EOFException-members.html +0 -36
  121. data/doc/cxxapi/classPassenger_1_1EOFException.html +0 -61
  122. data/doc/cxxapi/classPassenger_1_1EOFException__inherit__graph.map +0 -3
  123. data/doc/cxxapi/classPassenger_1_1EOFException__inherit__graph.md5 +0 -1
  124. data/doc/cxxapi/classPassenger_1_1EOFException__inherit__graph.png +0 -0
  125. data/doc/cxxapi/classPassenger_1_1EventFd-members.html +0 -36
  126. data/doc/cxxapi/classPassenger_1_1EventFd.html +0 -52
  127. data/doc/cxxapi/classPassenger_1_1EventedClient-members.html +0 -59
  128. data/doc/cxxapi/classPassenger_1_1EventedClient.html +0 -531
  129. data/doc/cxxapi/classPassenger_1_1EventedMessageServer-members.html +0 -37
  130. data/doc/cxxapi/classPassenger_1_1EventedMessageServer.html +0 -59
  131. data/doc/cxxapi/classPassenger_1_1EventedMessageServer__inherit__graph.map +0 -3
  132. data/doc/cxxapi/classPassenger_1_1EventedMessageServer__inherit__graph.md5 +0 -1
  133. data/doc/cxxapi/classPassenger_1_1EventedMessageServer__inherit__graph.png +0 -0
  134. data/doc/cxxapi/classPassenger_1_1EventedServer-members.html +0 -37
  135. data/doc/cxxapi/classPassenger_1_1EventedServer.html +0 -93
  136. data/doc/cxxapi/classPassenger_1_1EventedServer__inherit__graph.map +0 -3
  137. data/doc/cxxapi/classPassenger_1_1EventedServer__inherit__graph.md5 +0 -1
  138. data/doc/cxxapi/classPassenger_1_1EventedServer__inherit__graph.png +0 -0
  139. data/doc/cxxapi/classPassenger_1_1FileDescriptor-members.html +0 -41
  140. data/doc/cxxapi/classPassenger_1_1FileDescriptor.html +0 -178
  141. data/doc/cxxapi/classPassenger_1_1FileDescriptorPair-members.html +0 -36
  142. data/doc/cxxapi/classPassenger_1_1FileDescriptorPair.html +0 -52
  143. data/doc/cxxapi/classPassenger_1_1FileNotFoundException-members.html +0 -36
  144. data/doc/cxxapi/classPassenger_1_1FileNotFoundException.html +0 -58
  145. data/doc/cxxapi/classPassenger_1_1FileNotFoundException__inherit__graph.map +0 -3
  146. data/doc/cxxapi/classPassenger_1_1FileNotFoundException__inherit__graph.md5 +0 -1
  147. data/doc/cxxapi/classPassenger_1_1FileNotFoundException__inherit__graph.png +0 -0
  148. data/doc/cxxapi/classPassenger_1_1FileSystemException-members.html +0 -41
  149. data/doc/cxxapi/classPassenger_1_1FileSystemException.html +0 -66
  150. data/doc/cxxapi/classPassenger_1_1FileSystemException__inherit__graph.map +0 -3
  151. data/doc/cxxapi/classPassenger_1_1FileSystemException__inherit__graph.md5 +0 -1
  152. data/doc/cxxapi/classPassenger_1_1FileSystemException__inherit__graph.png +0 -0
  153. data/doc/cxxapi/classPassenger_1_1HttpStatusExtractor-members.html +0 -39
  154. data/doc/cxxapi/classPassenger_1_1HttpStatusExtractor.html +0 -128
  155. data/doc/cxxapi/classPassenger_1_1IOException-members.html +0 -36
  156. data/doc/cxxapi/classPassenger_1_1IOException.html +0 -61
  157. data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.map +0 -4
  158. data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.md5 +0 -1
  159. data/doc/cxxapi/classPassenger_1_1IOException__inherit__graph.png +0 -0
  160. data/doc/cxxapi/classPassenger_1_1MessageChannel-members.html +0 -57
  161. data/doc/cxxapi/classPassenger_1_1MessageChannel.html +0 -839
  162. data/doc/cxxapi/classPassenger_1_1MessageServer-members.html +0 -49
  163. data/doc/cxxapi/classPassenger_1_1MessageServer.html +0 -407
  164. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext-members.html +0 -36
  165. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext.html +0 -58
  166. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext__inherit__graph.map +0 -3
  167. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext__inherit__graph.md5 +0 -1
  168. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1ClientContext__inherit__graph.png +0 -0
  169. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext-members.html +0 -41
  170. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext.html +0 -165
  171. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext__inherit__graph.map +0 -3
  172. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext__inherit__graph.md5 +0 -1
  173. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1CommonClientContext__inherit__graph.png +0 -0
  174. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler-members.html +0 -39
  175. data/doc/cxxapi/classPassenger_1_1MessageServer_1_1Handler.html +0 -173
  176. data/doc/cxxapi/classPassenger_1_1Process-members.html +0 -44
  177. data/doc/cxxapi/classPassenger_1_1Process.html +0 -290
  178. data/doc/cxxapi/classPassenger_1_1RandomGenerator-members.html +0 -37
  179. data/doc/cxxapi/classPassenger_1_1RandomGenerator.html +0 -79
  180. data/doc/cxxapi/classPassenger_1_1ResourceLocator-members.html +0 -36
  181. data/doc/cxxapi/classPassenger_1_1ResourceLocator.html +0 -51
  182. data/doc/cxxapi/classPassenger_1_1RuntimeException-members.html +0 -36
  183. data/doc/cxxapi/classPassenger_1_1RuntimeException.html +0 -54
  184. data/doc/cxxapi/classPassenger_1_1SafeLibev-members.html +0 -36
  185. data/doc/cxxapi/classPassenger_1_1SafeLibev.html +0 -51
  186. data/doc/cxxapi/classPassenger_1_1ScalarMessage-members.html +0 -37
  187. data/doc/cxxapi/classPassenger_1_1ScalarMessage.html +0 -76
  188. data/doc/cxxapi/classPassenger_1_1ScgiRequestParser-members.html +0 -50
  189. data/doc/cxxapi/classPassenger_1_1ScgiRequestParser.html +0 -285
  190. data/doc/cxxapi/classPassenger_1_1SecurityException-members.html +0 -36
  191. data/doc/cxxapi/classPassenger_1_1SecurityException.html +0 -56
  192. data/doc/cxxapi/classPassenger_1_1Session-members.html +0 -53
  193. data/doc/cxxapi/classPassenger_1_1Session.html +0 -556
  194. data/doc/cxxapi/classPassenger_1_1Session__inherit__graph.map +0 -3
  195. data/doc/cxxapi/classPassenger_1_1Session__inherit__graph.md5 +0 -1
  196. data/doc/cxxapi/classPassenger_1_1Session__inherit__graph.png +0 -0
  197. data/doc/cxxapi/classPassenger_1_1SpawnException-members.html +0 -39
  198. data/doc/cxxapi/classPassenger_1_1SpawnException.html +0 -101
  199. data/doc/cxxapi/classPassenger_1_1SpawnManager-members.html +0 -42
  200. data/doc/cxxapi/classPassenger_1_1SpawnManager.html +0 -292
  201. data/doc/cxxapi/classPassenger_1_1SpawnManager__inherit__graph.map +0 -3
  202. data/doc/cxxapi/classPassenger_1_1SpawnManager__inherit__graph.md5 +0 -1
  203. data/doc/cxxapi/classPassenger_1_1SpawnManager__inherit__graph.png +0 -0
  204. data/doc/cxxapi/classPassenger_1_1StandardSession-members.html +0 -54
  205. data/doc/cxxapi/classPassenger_1_1StandardSession.html +0 -394
  206. data/doc/cxxapi/classPassenger_1_1StandardSession__inherit__graph.map +0 -3
  207. data/doc/cxxapi/classPassenger_1_1StandardSession__inherit__graph.md5 +0 -1
  208. data/doc/cxxapi/classPassenger_1_1StandardSession__inherit__graph.png +0 -0
  209. data/doc/cxxapi/classPassenger_1_1StaticString-members.html +0 -36
  210. data/doc/cxxapi/classPassenger_1_1StaticString.html +0 -56
  211. data/doc/cxxapi/classPassenger_1_1SyntaxError-members.html +0 -36
  212. data/doc/cxxapi/classPassenger_1_1SyntaxError.html +0 -54
  213. data/doc/cxxapi/classPassenger_1_1SystemException-members.html +0 -40
  214. data/doc/cxxapi/classPassenger_1_1SystemException.html +0 -155
  215. data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.map +0 -4
  216. data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.md5 +0 -1
  217. data/doc/cxxapi/classPassenger_1_1SystemException__inherit__graph.png +0 -0
  218. data/doc/cxxapi/classPassenger_1_1TimeRetrievalException-members.html +0 -40
  219. data/doc/cxxapi/classPassenger_1_1TimeRetrievalException.html +0 -61
  220. data/doc/cxxapi/classPassenger_1_1TimeRetrievalException__inherit__graph.map +0 -3
  221. data/doc/cxxapi/classPassenger_1_1TimeRetrievalException__inherit__graph.md5 +0 -1
  222. data/doc/cxxapi/classPassenger_1_1TimeRetrievalException__inherit__graph.png +0 -0
  223. data/doc/cxxapi/classPassenger_1_1TimeoutException-members.html +0 -36
  224. data/doc/cxxapi/classPassenger_1_1TimeoutException.html +0 -54
  225. data/doc/cxxapi/classPassenger_1_1Uint16Message-members.html +0 -36
  226. data/doc/cxxapi/classPassenger_1_1Uint16Message.html +0 -51
  227. data/doc/cxxapi/classPassenger_1_1Uint32Message-members.html +0 -36
  228. data/doc/cxxapi/classPassenger_1_1Uint32Message.html +0 -51
  229. data/doc/cxxapi/classServer-members.html +0 -36
  230. data/doc/cxxapi/classServer.html +0 -49
  231. data/doc/cxxapi/classServerInstanceDirToucher-members.html +0 -36
  232. data/doc/cxxapi/classServerInstanceDirToucher.html +0 -47
  233. data/doc/cxxapi/classes.html +0 -52
  234. data/doc/cxxapi/definitions_8h_source.html +0 -36
  235. data/doc/cxxapi/doxygen.css +0 -532
  236. data/doc/cxxapi/doxygen.png +0 -0
  237. data/doc/cxxapi/files.html +0 -76
  238. data/doc/cxxapi/ftv2blank.png +0 -0
  239. data/doc/cxxapi/ftv2doc.png +0 -0
  240. data/doc/cxxapi/ftv2folderclosed.png +0 -0
  241. data/doc/cxxapi/ftv2folderopen.png +0 -0
  242. data/doc/cxxapi/ftv2lastnode.png +0 -0
  243. data/doc/cxxapi/ftv2link.png +0 -0
  244. data/doc/cxxapi/ftv2mlastnode.png +0 -0
  245. data/doc/cxxapi/ftv2mnode.png +0 -0
  246. data/doc/cxxapi/ftv2node.png +0 -0
  247. data/doc/cxxapi/ftv2plastnode.png +0 -0
  248. data/doc/cxxapi/ftv2pnode.png +0 -0
  249. data/doc/cxxapi/ftv2vertline.png +0 -0
  250. data/doc/cxxapi/functions.html +0 -103
  251. data/doc/cxxapi/functions_0x62.html +0 -82
  252. data/doc/cxxapi/functions_0x63.html +0 -102
  253. data/doc/cxxapi/functions_0x64.html +0 -102
  254. data/doc/cxxapi/functions_0x65.html +0 -88
  255. data/doc/cxxapi/functions_0x66.html +0 -100
  256. data/doc/cxxapi/functions_0x67.html +0 -167
  257. data/doc/cxxapi/functions_0x68.html +0 -88
  258. data/doc/cxxapi/functions_0x69.html +0 -96
  259. data/doc/cxxapi/functions_0x6b.html +0 -80
  260. data/doc/cxxapi/functions_0x6c.html +0 -88
  261. data/doc/cxxapi/functions_0x6d.html +0 -88
  262. data/doc/cxxapi/functions_0x6e.html +0 -86
  263. data/doc/cxxapi/functions_0x6f.html +0 -94
  264. data/doc/cxxapi/functions_0x70.html +0 -94
  265. data/doc/cxxapi/functions_0x72.html +0 -110
  266. data/doc/cxxapi/functions_0x73.html +0 -171
  267. data/doc/cxxapi/functions_0x74.html +0 -85
  268. data/doc/cxxapi/functions_0x75.html +0 -85
  269. data/doc/cxxapi/functions_0x77.html +0 -92
  270. data/doc/cxxapi/functions_0x7e.html +0 -79
  271. data/doc/cxxapi/functions_enum.html +0 -49
  272. data/doc/cxxapi/functions_eval.html +0 -67
  273. data/doc/cxxapi/functions_func.html +0 -531
  274. data/doc/cxxapi/functions_vars.html +0 -278
  275. data/doc/cxxapi/graph_legend.dot +0 -22
  276. data/doc/cxxapi/graph_legend.html +0 -92
  277. data/doc/cxxapi/graph_legend.png +0 -0
  278. data/doc/cxxapi/group__Core.html +0 -46
  279. data/doc/cxxapi/group__Core.map +0 -3
  280. data/doc/cxxapi/group__Core.png +0 -0
  281. data/doc/cxxapi/group__Exceptions.html +0 -53
  282. data/doc/cxxapi/group__Hooks.html +0 -42
  283. data/doc/cxxapi/group__Hooks.map +0 -3
  284. data/doc/cxxapi/group__Hooks.png +0 -0
  285. data/doc/cxxapi/group__Support.html +0 -538
  286. data/doc/cxxapi/hierarchy.html +0 -101
  287. data/doc/cxxapi/index.html +0 -16
  288. data/doc/cxxapi/inherit__graph__0.map +0 -3
  289. data/doc/cxxapi/inherit__graph__0.md5 +0 -1
  290. data/doc/cxxapi/inherit__graph__0.png +0 -0
  291. data/doc/cxxapi/inherit__graph__1.map +0 -3
  292. data/doc/cxxapi/inherit__graph__1.md5 +0 -1
  293. data/doc/cxxapi/inherit__graph__1.png +0 -0
  294. data/doc/cxxapi/inherit__graph__10.map +0 -3
  295. data/doc/cxxapi/inherit__graph__10.md5 +0 -1
  296. data/doc/cxxapi/inherit__graph__10.png +0 -0
  297. data/doc/cxxapi/inherit__graph__11.map +0 -4
  298. data/doc/cxxapi/inherit__graph__11.md5 +0 -1
  299. data/doc/cxxapi/inherit__graph__11.png +0 -0
  300. data/doc/cxxapi/inherit__graph__12.map +0 -3
  301. data/doc/cxxapi/inherit__graph__12.md5 +0 -1
  302. data/doc/cxxapi/inherit__graph__12.png +0 -0
  303. data/doc/cxxapi/inherit__graph__13.map +0 -3
  304. data/doc/cxxapi/inherit__graph__13.md5 +0 -1
  305. data/doc/cxxapi/inherit__graph__13.png +0 -0
  306. data/doc/cxxapi/inherit__graph__14.map +0 -3
  307. data/doc/cxxapi/inherit__graph__14.md5 +0 -1
  308. data/doc/cxxapi/inherit__graph__14.png +0 -0
  309. data/doc/cxxapi/inherit__graph__15.map +0 -3
  310. data/doc/cxxapi/inherit__graph__15.md5 +0 -1
  311. data/doc/cxxapi/inherit__graph__15.png +0 -0
  312. data/doc/cxxapi/inherit__graph__16.map +0 -5
  313. data/doc/cxxapi/inherit__graph__16.md5 +0 -1
  314. data/doc/cxxapi/inherit__graph__16.png +0 -0
  315. data/doc/cxxapi/inherit__graph__17.map +0 -3
  316. data/doc/cxxapi/inherit__graph__17.md5 +0 -1
  317. data/doc/cxxapi/inherit__graph__17.png +0 -0
  318. data/doc/cxxapi/inherit__graph__18.map +0 -3
  319. data/doc/cxxapi/inherit__graph__18.md5 +0 -1
  320. data/doc/cxxapi/inherit__graph__18.png +0 -0
  321. data/doc/cxxapi/inherit__graph__19.map +0 -4
  322. data/doc/cxxapi/inherit__graph__19.md5 +0 -1
  323. data/doc/cxxapi/inherit__graph__19.png +0 -0
  324. data/doc/cxxapi/inherit__graph__2.map +0 -3
  325. data/doc/cxxapi/inherit__graph__2.md5 +0 -1
  326. data/doc/cxxapi/inherit__graph__2.png +0 -0
  327. data/doc/cxxapi/inherit__graph__20.map +0 -3
  328. data/doc/cxxapi/inherit__graph__20.md5 +0 -1
  329. data/doc/cxxapi/inherit__graph__20.png +0 -0
  330. data/doc/cxxapi/inherit__graph__21.map +0 -3
  331. data/doc/cxxapi/inherit__graph__21.md5 +0 -1
  332. data/doc/cxxapi/inherit__graph__21.png +0 -0
  333. data/doc/cxxapi/inherit__graph__22.map +0 -3
  334. data/doc/cxxapi/inherit__graph__22.md5 +0 -1
  335. data/doc/cxxapi/inherit__graph__22.png +0 -0
  336. data/doc/cxxapi/inherit__graph__23.map +0 -3
  337. data/doc/cxxapi/inherit__graph__23.md5 +0 -1
  338. data/doc/cxxapi/inherit__graph__23.png +0 -0
  339. data/doc/cxxapi/inherit__graph__24.map +0 -3
  340. data/doc/cxxapi/inherit__graph__24.md5 +0 -1
  341. data/doc/cxxapi/inherit__graph__24.png +0 -0
  342. data/doc/cxxapi/inherit__graph__25.map +0 -3
  343. data/doc/cxxapi/inherit__graph__25.md5 +0 -1
  344. data/doc/cxxapi/inherit__graph__25.png +0 -0
  345. data/doc/cxxapi/inherit__graph__26.map +0 -3
  346. data/doc/cxxapi/inherit__graph__26.md5 +0 -1
  347. data/doc/cxxapi/inherit__graph__26.png +0 -0
  348. data/doc/cxxapi/inherit__graph__27.map +0 -3
  349. data/doc/cxxapi/inherit__graph__27.md5 +0 -1
  350. data/doc/cxxapi/inherit__graph__27.png +0 -0
  351. data/doc/cxxapi/inherit__graph__28.map +0 -3
  352. data/doc/cxxapi/inherit__graph__28.md5 +0 -1
  353. data/doc/cxxapi/inherit__graph__28.png +0 -0
  354. data/doc/cxxapi/inherit__graph__29.map +0 -3
  355. data/doc/cxxapi/inherit__graph__29.md5 +0 -1
  356. data/doc/cxxapi/inherit__graph__29.png +0 -0
  357. data/doc/cxxapi/inherit__graph__3.map +0 -4
  358. data/doc/cxxapi/inherit__graph__3.md5 +0 -1
  359. data/doc/cxxapi/inherit__graph__3.png +0 -0
  360. data/doc/cxxapi/inherit__graph__30.map +0 -3
  361. data/doc/cxxapi/inherit__graph__30.md5 +0 -1
  362. data/doc/cxxapi/inherit__graph__30.png +0 -0
  363. data/doc/cxxapi/inherit__graph__31.map +0 -4
  364. data/doc/cxxapi/inherit__graph__31.md5 +0 -1
  365. data/doc/cxxapi/inherit__graph__31.png +0 -0
  366. data/doc/cxxapi/inherit__graph__32.map +0 -3
  367. data/doc/cxxapi/inherit__graph__32.md5 +0 -1
  368. data/doc/cxxapi/inherit__graph__32.png +0 -0
  369. data/doc/cxxapi/inherit__graph__33.map +0 -3
  370. data/doc/cxxapi/inherit__graph__33.md5 +0 -1
  371. data/doc/cxxapi/inherit__graph__33.png +0 -0
  372. data/doc/cxxapi/inherit__graph__34.map +0 -3
  373. data/doc/cxxapi/inherit__graph__34.md5 +0 -1
  374. data/doc/cxxapi/inherit__graph__34.png +0 -0
  375. data/doc/cxxapi/inherit__graph__35.map +0 -3
  376. data/doc/cxxapi/inherit__graph__35.md5 +0 -1
  377. data/doc/cxxapi/inherit__graph__35.png +0 -0
  378. data/doc/cxxapi/inherit__graph__36.map +0 -5
  379. data/doc/cxxapi/inherit__graph__36.md5 +0 -1
  380. data/doc/cxxapi/inherit__graph__36.png +0 -0
  381. data/doc/cxxapi/inherit__graph__37.map +0 -3
  382. data/doc/cxxapi/inherit__graph__37.md5 +0 -1
  383. data/doc/cxxapi/inherit__graph__37.png +0 -0
  384. data/doc/cxxapi/inherit__graph__38.map +0 -3
  385. data/doc/cxxapi/inherit__graph__38.md5 +0 -1
  386. data/doc/cxxapi/inherit__graph__38.png +0 -0
  387. data/doc/cxxapi/inherit__graph__39.map +0 -3
  388. data/doc/cxxapi/inherit__graph__39.md5 +0 -1
  389. data/doc/cxxapi/inherit__graph__39.png +0 -0
  390. data/doc/cxxapi/inherit__graph__4.map +0 -3
  391. data/doc/cxxapi/inherit__graph__4.md5 +0 -1
  392. data/doc/cxxapi/inherit__graph__4.png +0 -0
  393. data/doc/cxxapi/inherit__graph__40.map +0 -3
  394. data/doc/cxxapi/inherit__graph__40.md5 +0 -1
  395. data/doc/cxxapi/inherit__graph__40.png +0 -0
  396. data/doc/cxxapi/inherit__graph__41.map +0 -3
  397. data/doc/cxxapi/inherit__graph__41.md5 +0 -1
  398. data/doc/cxxapi/inherit__graph__41.png +0 -0
  399. data/doc/cxxapi/inherit__graph__5.map +0 -3
  400. data/doc/cxxapi/inherit__graph__5.md5 +0 -1
  401. data/doc/cxxapi/inherit__graph__5.png +0 -0
  402. data/doc/cxxapi/inherit__graph__6.map +0 -3
  403. data/doc/cxxapi/inherit__graph__6.md5 +0 -1
  404. data/doc/cxxapi/inherit__graph__6.png +0 -0
  405. data/doc/cxxapi/inherit__graph__7.map +0 -3
  406. data/doc/cxxapi/inherit__graph__7.md5 +0 -1
  407. data/doc/cxxapi/inherit__graph__7.png +0 -0
  408. data/doc/cxxapi/inherit__graph__8.map +0 -3
  409. data/doc/cxxapi/inherit__graph__8.md5 +0 -1
  410. data/doc/cxxapi/inherit__graph__8.png +0 -0
  411. data/doc/cxxapi/inherit__graph__9.map +0 -3
  412. data/doc/cxxapi/inherit__graph__9.md5 +0 -1
  413. data/doc/cxxapi/inherit__graph__9.png +0 -0
  414. data/doc/cxxapi/inherits.html +0 -165
  415. data/doc/cxxapi/main.html +0 -28
  416. data/doc/cxxapi/modules.html +0 -36
  417. data/doc/cxxapi/namespacePassenger.html +0 -585
  418. data/doc/cxxapi/namespacemembers.html +0 -190
  419. data/doc/cxxapi/namespacemembers_enum.html +0 -48
  420. data/doc/cxxapi/namespacemembers_eval.html +0 -57
  421. data/doc/cxxapi/namespacemembers_func.html +0 -114
  422. data/doc/cxxapi/namespacemembers_type.html +0 -54
  423. data/doc/cxxapi/namespaces.html +0 -37
  424. data/doc/cxxapi/nginx_2Configuration_8h_source.html +0 -126
  425. data/doc/cxxapi/ngx__http__passenger__module_8h_source.html +0 -95
  426. data/doc/cxxapi/structPassenger_1_1MessageServer_1_1DisconnectEventBroadcastGuard-members.html +0 -36
  427. data/doc/cxxapi/structPassenger_1_1MessageServer_1_1DisconnectEventBroadcastGuard.html +0 -51
  428. data/doc/cxxapi/structPassenger_1_1PoolOptions-members.html +0 -67
  429. data/doc/cxxapi/structPassenger_1_1PoolOptions.html +0 -647
  430. data/doc/cxxapi/structPassenger_1_1StaticString_1_1Hash-members.html +0 -36
  431. data/doc/cxxapi/structPassenger_1_1StaticString_1_1Hash.html +0 -51
  432. data/doc/cxxapi/tab_b.gif +0 -0
  433. data/doc/cxxapi/tab_l.gif +0 -0
  434. data/doc/cxxapi/tab_r.gif +0 -0
  435. data/doc/cxxapi/tabs.css +0 -105
  436. data/doc/cxxapi/tree.html +0 -249
  437. data/doc/template/horo.rb +0 -613
  438. data/ext/libev/config.h +0 -122
  439. data/ext/nginx/HttpStatusExtractor.h +0 -351
@@ -1,36 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
- <title>Passenger: Member List</title>
6
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
7
- <link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
- </head>
9
- <body>
10
- <!-- Generated by Doxygen 1.6.2 -->
11
- <div class="navigation" id="top">
12
- <div class="tabs">
13
- <ul>
14
- <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
15
- <li><a href="modules.html"><span>Modules</span></a></li>
16
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
17
- <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
18
- <li><a href="files.html"><span>Files</span></a></li>
19
- </ul>
20
- </div>
21
- <div class="tabs">
22
- <ul>
23
- <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
24
- <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
25
- <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
26
- </ul>
27
- </div>
28
- </div>
29
- <div class="contents">
30
- <h1>Passenger::SecurityException Member List</h1>This is the complete list of members for <a class="el" href="classPassenger_1_1SecurityException.html">Passenger::SecurityException</a>, including all inherited members.<table>
31
- </table></div>
32
- <hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
33
- <a href="http://www.doxygen.org/index.html">
34
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
35
- </body>
36
- </html>
@@ -1,56 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
- <title>Passenger: Passenger::SecurityException Class Reference</title>
6
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
7
- <link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
- </head>
9
- <body>
10
- <!-- Generated by Doxygen 1.6.2 -->
11
- <div class="navigation" id="top">
12
- <div class="tabs">
13
- <ul>
14
- <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
15
- <li><a href="modules.html"><span>Modules</span></a></li>
16
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
17
- <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
18
- <li><a href="files.html"><span>Files</span></a></li>
19
- </ul>
20
- </div>
21
- <div class="tabs">
22
- <ul>
23
- <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
24
- <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
25
- <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
26
- </ul>
27
- </div>
28
- <div class="navpath"><a class="el" href="namespacePassenger.html">Passenger</a>::<a class="el" href="classPassenger_1_1SecurityException.html">SecurityException</a>
29
- </div>
30
- </div>
31
- <div class="contents">
32
- <h1>Passenger::SecurityException Class Reference<br/>
33
- <small>
34
- [<a class="el" href="group__Exceptions.html">Exceptions</a>]</small>
35
- </h1><!-- doxytag: class="Passenger::SecurityException" -->
36
- <p>Represents some kind of security error.
37
- <a href="#_details">More...</a></p>
38
-
39
- <p><code>#include &lt;<a class="el" href="Exceptions_8h_source.html">Exceptions.h</a>&gt;</code></p>
40
-
41
- <p>Inherited by Passenger::NonExistentGroupException, and Passenger::NonExistentUserException.</p>
42
-
43
- <p><a href="classPassenger_1_1SecurityException-members.html">List of all members.</a></p>
44
- <table border="0" cellpadding="0" cellspacing="0">
45
- </table>
46
- <hr/><a name="_details"></a><h2>Detailed Description</h2>
47
- <p>Represents some kind of security error. </p>
48
- <hr/>The documentation for this class was generated from the following file:<ul>
49
- <li><a class="el" href="Exceptions_8h_source.html">Exceptions.h</a></li>
50
- </ul>
51
- </div>
52
- <hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
53
- <a href="http://www.doxygen.org/index.html">
54
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
55
- </body>
56
- </html>
@@ -1,53 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
- <title>Passenger: Member List</title>
6
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
7
- <link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
- </head>
9
- <body>
10
- <!-- Generated by Doxygen 1.6.2 -->
11
- <div class="navigation" id="top">
12
- <div class="tabs">
13
- <ul>
14
- <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
15
- <li><a href="modules.html"><span>Modules</span></a></li>
16
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
17
- <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
18
- <li><a href="files.html"><span>Files</span></a></li>
19
- </ul>
20
- </div>
21
- <div class="tabs">
22
- <ul>
23
- <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
24
- <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
25
- <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
26
- </ul>
27
- </div>
28
- </div>
29
- <div class="contents">
30
- <h1>Passenger::Session Member List</h1>This is the complete list of members for <a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a>, including all inherited members.<table>
31
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a7ab85388f15388cb8e65873d1ad310a5">closeStream</a>()=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
32
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a75344fdfb3c693323877e32884efaa31">discardStream</a>()=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
33
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#aeaf4f7097f7b3430dc88e8070cad5899">getConnectPassword</a>() const </td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [inline]</code></td></tr>
34
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a1b58af5493a61bfe4efbd725dcef61a3">getPid</a>() const =0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
35
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a7b8a632ebde11544a8ab98fde89954bb">getSocketName</a>() const =0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
36
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#ab8f084ab143d44f1a9ef8e8ccc841485">getSocketType</a>() const =0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
37
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a949c7a46f4bb0c628730ded2041d2489">getStream</a>() const =0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
38
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#abbcfa3eb48d38dead20c0d32cab4850b">initiate</a>()=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
39
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92">initiated</a>() const =0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
40
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a2203d81e25fe5066aed351608deecf7b">sendBodyBlock</a>(const char *block, unsigned int size)</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [inline, virtual]</code></td></tr>
41
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671">sendHeaders</a>(const char *headers, unsigned int size)</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [inline, virtual]</code></td></tr>
42
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a8253d81e64adc0dc72b1dc65a5117aba">sendHeaders</a>(const StaticString &amp;headers)</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [inline, virtual]</code></td></tr>
43
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a5accbd8f7cce66d0ef6695481fdaa39c">setReaderTimeout</a>(unsigned int msec)=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
44
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a21dd749c0c8d22f65c6a914ec2f97c94">setWriterTimeout</a>(unsigned int msec)=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
45
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#ac579d233ddc82542c336b2af1f40c4dd">shutdownReader</a>()=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
46
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#a8263c568a8ac4567b33728d820cbd920">shutdownWriter</a>()=0</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [pure virtual]</code></td></tr>
47
- <tr class="memlist"><td><a class="el" href="classPassenger_1_1Session.html#ac982015e84f64dbec70daef8fdbd31d9">~Session</a>()</td><td><a class="el" href="classPassenger_1_1Session.html">Passenger::Session</a></td><td><code> [inline, virtual]</code></td></tr>
48
- </table></div>
49
- <hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
50
- <a href="http://www.doxygen.org/index.html">
51
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
52
- </body>
53
- </html>
@@ -1,556 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
- <title>Passenger: Passenger::Session Class Reference</title>
6
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
7
- <link href="doxygen.css" rel="stylesheet" type="text/css"/>
8
- </head>
9
- <body>
10
- <!-- Generated by Doxygen 1.6.2 -->
11
- <div class="navigation" id="top">
12
- <div class="tabs">
13
- <ul>
14
- <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
15
- <li><a href="modules.html"><span>Modules</span></a></li>
16
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
17
- <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
18
- <li><a href="files.html"><span>Files</span></a></li>
19
- </ul>
20
- </div>
21
- <div class="tabs">
22
- <ul>
23
- <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
24
- <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
25
- <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
26
- </ul>
27
- </div>
28
- <div class="navpath"><a class="el" href="namespacePassenger.html">Passenger</a>::<a class="el" href="classPassenger_1_1Session.html">Session</a>
29
- </div>
30
- </div>
31
- <div class="contents">
32
- <h1>Passenger::Session Class Reference</h1><!-- doxytag: class="Passenger::Session" -->
33
- <p>Represents a single request/response pair of an application process.
34
- <a href="#_details">More...</a></p>
35
-
36
- <p><code>#include &lt;<a class="el" href="Session_8h_source.html">Session.h</a>&gt;</code></p>
37
- <div class="dynheader">
38
- Inheritance diagram for Passenger::Session:</div>
39
- <div class="dynsection">
40
- <div class="center"><img src="classPassenger_1_1Session__inherit__graph.png" border="0" usemap="#Passenger_1_1Session_inherit__map" alt="Inheritance graph"/></div>
41
- <map name="Passenger_1_1Session_inherit__map" id="Passenger_1_1Session_inherit__map">
42
- <area shape="rect" id="node3" href="classPassenger_1_1StandardSession.html" title="A &quot;standard&quot; implementation of Session." alt="" coords="5,83,211,112"/></map>
43
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
44
-
45
- <p><a href="classPassenger_1_1Session-members.html">List of all members.</a></p>
46
- <table border="0" cellpadding="0" cellspacing="0">
47
- <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
48
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac982015e84f64dbec70daef8fdbd31d9"></a><!-- doxytag: member="Passenger::Session::~Session" ref="ac982015e84f64dbec70daef8fdbd31d9" args="()" -->
49
- virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#ac982015e84f64dbec70daef8fdbd31d9">~Session</a> ()</td></tr>
50
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Concrete classes might throw arbitrary exceptions. <br/></td></tr>
51
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#abbcfa3eb48d38dead20c0d32cab4850b">initiate</a> ()=0</td></tr>
52
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initiate the session by connecting to the associated process. <a href="#abbcfa3eb48d38dead20c0d32cab4850b"></a><br/></td></tr>
53
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf1b6ba182a0fc66c8e617f74afafb92"></a><!-- doxytag: member="Passenger::Session::initiated" ref="abf1b6ba182a0fc66c8e617f74afafb92" args="() const =0" -->
54
- virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92">initiated</a> () const =0</td></tr>
55
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether this session has been initiated (that is, whether <a class="el" href="classPassenger_1_1Session.html#abbcfa3eb48d38dead20c0d32cab4850b" title="Initiate the session by connecting to the associated process.">initiate()</a> had been called in the past). <br/></td></tr>
56
- <tr><td class="memItemLeft" align="right" valign="top">virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#ab8f084ab143d44f1a9ef8e8ccc841485">getSocketType</a> () const =0</td></tr>
57
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the type of the socket that this session is served from, e.g. <a href="#ab8f084ab143d44f1a9ef8e8ccc841485"></a><br/></td></tr>
58
- <tr><td class="memItemLeft" align="right" valign="top">virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a7b8a632ebde11544a8ab98fde89954bb">getSocketName</a> () const =0</td></tr>
59
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the address of the socket that this session is served from. <a href="#a7b8a632ebde11544a8ab98fde89954bb"></a><br/></td></tr>
60
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671">sendHeaders</a> (const char *headers, unsigned int size)</td></tr>
61
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send HTTP request headers to the application. <a href="#a8f8a39f78dd2672b00f1ff01e4d6d671"></a><br/></td></tr>
62
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a8253d81e64adc0dc72b1dc65a5117aba">sendHeaders</a> (const <a class="el" href="classPassenger_1_1StaticString.html">StaticString</a> &amp;headers)</td></tr>
63
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience shortcut for <a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671" title="Send HTTP request headers to the application.">sendHeaders(const char *, unsigned int)</a>. <a href="#a8253d81e64adc0dc72b1dc65a5117aba"></a><br/></td></tr>
64
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a2203d81e25fe5066aed351608deecf7b">sendBodyBlock</a> (const char *block, unsigned int size)</td></tr>
65
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send a chunk of HTTP request body data to the application. <a href="#a2203d81e25fe5066aed351608deecf7b"></a><br/></td></tr>
66
- <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a949c7a46f4bb0c628730ded2041d2489">getStream</a> () const =0</td></tr>
67
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns this session's channel's file descriptor. <a href="#a949c7a46f4bb0c628730ded2041d2489"></a><br/></td></tr>
68
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a5accbd8f7cce66d0ef6695481fdaa39c">setReaderTimeout</a> (unsigned int msec)=0</td></tr>
69
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the timeout value for reading data from the I/O channel. <a href="#a5accbd8f7cce66d0ef6695481fdaa39c"></a><br/></td></tr>
70
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a21dd749c0c8d22f65c6a914ec2f97c94">setWriterTimeout</a> (unsigned int msec)=0</td></tr>
71
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the timeout value for writing data from the I/O channel. <a href="#a21dd749c0c8d22f65c6a914ec2f97c94"></a><br/></td></tr>
72
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#ac579d233ddc82542c336b2af1f40c4dd">shutdownReader</a> ()=0</td></tr>
73
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indicate that we don't want to read data anymore from the I/O channel. <a href="#ac579d233ddc82542c336b2af1f40c4dd"></a><br/></td></tr>
74
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a8263c568a8ac4567b33728d820cbd920">shutdownWriter</a> ()=0</td></tr>
75
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indicate that we don't want to write data anymore to the I/O channel. <a href="#a8263c568a8ac4567b33728d820cbd920"></a><br/></td></tr>
76
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a7ab85388f15388cb8e65873d1ad310a5">closeStream</a> ()=0</td></tr>
77
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close the I/O stream. <a href="#a7ab85388f15388cb8e65873d1ad310a5"></a><br/></td></tr>
78
- <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a75344fdfb3c693323877e32884efaa31">discardStream</a> ()=0</td></tr>
79
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Discard the I/O channel's file descriptor, so that the destructor won't automatically close it. <a href="#a75344fdfb3c693323877e32884efaa31"></a><br/></td></tr>
80
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1b58af5493a61bfe4efbd725dcef61a3"></a><!-- doxytag: member="Passenger::Session::getPid" ref="a1b58af5493a61bfe4efbd725dcef61a3" args="() const =0" -->
81
- virtual pid_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#a1b58af5493a61bfe4efbd725dcef61a3">getPid</a> () const =0</td></tr>
82
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the process ID of the application process that this session belongs to. <br/></td></tr>
83
- <tr><td class="memItemLeft" align="right" valign="top">const string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPassenger_1_1Session.html#aeaf4f7097f7b3430dc88e8070cad5899">getConnectPassword</a> () const </td></tr>
84
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns this session's process's connect password. <a href="#aeaf4f7097f7b3430dc88e8070cad5899"></a><br/></td></tr>
85
- </table>
86
- <hr/><a name="_details"></a><h2>Detailed Description</h2>
87
- <p>Represents a single request/response pair of an application process. </p>
88
- <p><a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> is used to forward a single HTTP request to an application process, and to read back the HTTP response. A <a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> object is to be used in the following manner:</p>
89
- <ol type="1">
90
- <li>Serialize the HTTP request headers into a format as expected by <a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671" title="Send HTTP request headers to the application.">sendHeaders()</a>, then send that string by calling <a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671" title="Send HTTP request headers to the application.">sendHeaders()</a>.</li>
91
- <li>In case of a POST of PUT request, send the HTTP request body by calling <a class="el" href="classPassenger_1_1Session.html#a2203d81e25fe5066aed351608deecf7b" title="Send a chunk of HTTP request body data to the application.">sendBodyBlock()</a>, possibly multiple times.</li>
92
- <li>Shutdown the writer end of the session channel (<a class="el" href="classPassenger_1_1Session.html#a8263c568a8ac4567b33728d820cbd920" title="Indicate that we don&#39;t want to write data anymore to the I/O channel.">shutdownWriter()</a>) since you're now done sending data.</li>
93
- <li>The HTTP response can now be read through the session channel (<a class="el" href="classPassenger_1_1Session.html#a949c7a46f4bb0c628730ded2041d2489" title="Returns this session&#39;s channel&#39;s file descriptor.">getStream()</a>).</li>
94
- <li>When the HTTP response has been read, the session must be closed. This is done by destroying the <a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> object.</li>
95
- </ol>
96
- <p>A usage example is shown in <a class="el" href="classPassenger_1_1Process.html#a4df3ce126ba64c864c1759d916f25635" title="Request a new session from this application process by connecting to its main server...">Process::newSession()</a>.</p>
97
- <p><a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> is an abstract base class. Concrete implementations can be found in <a class="el" href="classPassenger_1_1StandardSession.html" title="A &quot;standard&quot; implementation of Session.">StandardSession</a> and ApplicationPool::Client::RemoteSession.</p>
98
- <p><a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> is not guaranteed to be thread-safe. </p>
99
- <hr/><h2>Member Function Documentation</h2>
100
- <a class="anchor" id="a7ab85388f15388cb8e65873d1ad310a5"></a><!-- doxytag: member="Passenger::Session::closeStream" ref="a7ab85388f15388cb8e65873d1ad310a5" args="()=0" -->
101
- <div class="memitem">
102
- <div class="memproto">
103
- <table class="memname">
104
- <tr>
105
- <td class="memname">virtual void Passenger::Session::closeStream </td>
106
- <td>(</td>
107
- <td class="paramname"></td>
108
- <td>&nbsp;)&nbsp;</td>
109
- <td><code> [pure virtual]</code></td>
110
- </tr>
111
- </table>
112
- </div>
113
- <div class="memdoc">
114
-
115
- <p>Close the I/O stream. </p>
116
- <dl><dt><b>Exceptions:</b></dt><dd>
117
- <table border="0" cellspacing="2" cellpadding="0">
118
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong. </td></tr>
119
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
120
- </table>
121
- </dd>
122
- </dl>
123
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
124
- <dl class="post"><dt><b>Postcondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#a949c7a46f4bb0c628730ded2041d2489" title="Returns this session&#39;s channel&#39;s file descriptor.">getStream()</a> == -1 </dd></dl>
125
-
126
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#af5cdfa78db1fca6303ccd43ac5126b6b">Passenger::StandardSession</a>.</p>
127
-
128
- </div>
129
- </div>
130
- <a class="anchor" id="a75344fdfb3c693323877e32884efaa31"></a><!-- doxytag: member="Passenger::Session::discardStream" ref="a75344fdfb3c693323877e32884efaa31" args="()=0" -->
131
- <div class="memitem">
132
- <div class="memproto">
133
- <table class="memname">
134
- <tr>
135
- <td class="memname">virtual void Passenger::Session::discardStream </td>
136
- <td>(</td>
137
- <td class="paramname"></td>
138
- <td>&nbsp;)&nbsp;</td>
139
- <td><code> [pure virtual]</code></td>
140
- </tr>
141
- </table>
142
- </div>
143
- <div class="memdoc">
144
-
145
- <p>Discard the I/O channel's file descriptor, so that the destructor won't automatically close it. </p>
146
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
147
- <dl class="post"><dt><b>Postcondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#a949c7a46f4bb0c628730ded2041d2489" title="Returns this session&#39;s channel&#39;s file descriptor.">getStream()</a> == -1 </dd></dl>
148
-
149
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#a3666d401df82696fe945fcbb66804785">Passenger::StandardSession</a>.</p>
150
-
151
- </div>
152
- </div>
153
- <a class="anchor" id="aeaf4f7097f7b3430dc88e8070cad5899"></a><!-- doxytag: member="Passenger::Session::getConnectPassword" ref="aeaf4f7097f7b3430dc88e8070cad5899" args="() const " -->
154
- <div class="memitem">
155
- <div class="memproto">
156
- <table class="memname">
157
- <tr>
158
- <td class="memname">const string Passenger::Session::getConnectPassword </td>
159
- <td>(</td>
160
- <td class="paramname"></td>
161
- <td>&nbsp;)&nbsp;</td>
162
- <td> const<code> [inline]</code></td>
163
- </tr>
164
- </table>
165
- </div>
166
- <div class="memdoc">
167
-
168
- <p>Returns this session's process's connect password. </p>
169
- <p>This password is guaranteed to be valid ASCII. </p>
170
-
171
- </div>
172
- </div>
173
- <a class="anchor" id="a7b8a632ebde11544a8ab98fde89954bb"></a><!-- doxytag: member="Passenger::Session::getSocketName" ref="a7b8a632ebde11544a8ab98fde89954bb" args="() const =0" -->
174
- <div class="memitem">
175
- <div class="memproto">
176
- <table class="memname">
177
- <tr>
178
- <td class="memname">virtual string Passenger::Session::getSocketName </td>
179
- <td>(</td>
180
- <td class="paramname"></td>
181
- <td>&nbsp;)&nbsp;</td>
182
- <td> const<code> [pure virtual]</code></td>
183
- </tr>
184
- </table>
185
- </div>
186
- <div class="memdoc">
187
-
188
- <p>Returns the address of the socket that this session is served from. </p>
189
- <p>This can be a Unix socket filename or a TCP host:port string like "127.0.0.1:1234".</p>
190
- <dl class="post"><dt><b>Postcondition:</b></dt><dd>!result.empty() </dd></dl>
191
-
192
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#a720e98b8dd246eeca004c8e625c0d4d3">Passenger::StandardSession</a>.</p>
193
-
194
- </div>
195
- </div>
196
- <a class="anchor" id="ab8f084ab143d44f1a9ef8e8ccc841485"></a><!-- doxytag: member="Passenger::Session::getSocketType" ref="ab8f084ab143d44f1a9ef8e8ccc841485" args="() const =0" -->
197
- <div class="memitem">
198
- <div class="memproto">
199
- <table class="memname">
200
- <tr>
201
- <td class="memname">virtual string Passenger::Session::getSocketType </td>
202
- <td>(</td>
203
- <td class="paramname"></td>
204
- <td>&nbsp;)&nbsp;</td>
205
- <td> const<code> [pure virtual]</code></td>
206
- </tr>
207
- </table>
208
- </div>
209
- <div class="memdoc">
210
-
211
- <p>Returns the type of the socket that this session is served from, e.g. </p>
212
- <p>"unix" indicating a Unix socket.</p>
213
- <dl class="post"><dt><b>Postcondition:</b></dt><dd>!result.empty() </dd></dl>
214
-
215
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#a3a59997280d5f7fcaa901716cd8451a2">Passenger::StandardSession</a>.</p>
216
-
217
- </div>
218
- </div>
219
- <a class="anchor" id="a949c7a46f4bb0c628730ded2041d2489"></a><!-- doxytag: member="Passenger::Session::getStream" ref="a949c7a46f4bb0c628730ded2041d2489" args="() const =0" -->
220
- <div class="memitem">
221
- <div class="memproto">
222
- <table class="memname">
223
- <tr>
224
- <td class="memname">virtual int Passenger::Session::getStream </td>
225
- <td>(</td>
226
- <td class="paramname"></td>
227
- <td>&nbsp;)&nbsp;</td>
228
- <td> const<code> [pure virtual]</code></td>
229
- </tr>
230
- </table>
231
- </div>
232
- <div class="memdoc">
233
-
234
- <p>Returns this session's channel's file descriptor. </p>
235
- <p>This stream is full-duplex, and will be automatically closed upon Session's destruction, unless <a class="el" href="classPassenger_1_1Session.html#a75344fdfb3c693323877e32884efaa31" title="Discard the I/O channel&#39;s file descriptor, so that the destructor won&#39;t automatically...">discardStream()</a> is called.</p>
236
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
237
- <dl class="return"><dt><b>Returns:</b></dt><dd>The file descriptor, or -1 if the I/O channel has already been closed or discarded. </dd></dl>
238
-
239
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#aa3491d2151ba3b94c1b19a4f18bade6a">Passenger::StandardSession</a>.</p>
240
-
241
- </div>
242
- </div>
243
- <a class="anchor" id="abbcfa3eb48d38dead20c0d32cab4850b"></a><!-- doxytag: member="Passenger::Session::initiate" ref="abbcfa3eb48d38dead20c0d32cab4850b" args="()=0" -->
244
- <div class="memitem">
245
- <div class="memproto">
246
- <table class="memname">
247
- <tr>
248
- <td class="memname">virtual void Passenger::Session::initiate </td>
249
- <td>(</td>
250
- <td class="paramname"></td>
251
- <td>&nbsp;)&nbsp;</td>
252
- <td><code> [pure virtual]</code></td>
253
- </tr>
254
- </table>
255
- </div>
256
- <div class="memdoc">
257
-
258
- <p>Initiate the session by connecting to the associated process. </p>
259
- <p>A <a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> is not usable until it's initiated.</p>
260
- <dl><dt><b>Exceptions:</b></dt><dd>
261
- <table border="0" cellspacing="2" cellpadding="0">
262
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong. </td></tr>
263
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1IOException.html" title="Represents an error that occured during an I/O operation.">IOException</a></em>&nbsp;</td><td>Something went wrong. </td></tr>
264
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
265
- </table>
266
- </dd>
267
- </dl>
268
-
269
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#ac283db6faf2fcd1827baf3ebac276677">Passenger::StandardSession</a>.</p>
270
-
271
- </div>
272
- </div>
273
- <a class="anchor" id="a2203d81e25fe5066aed351608deecf7b"></a><!-- doxytag: member="Passenger::Session::sendBodyBlock" ref="a2203d81e25fe5066aed351608deecf7b" args="(const char *block, unsigned int size)" -->
274
- <div class="memitem">
275
- <div class="memproto">
276
- <table class="memname">
277
- <tr>
278
- <td class="memname">virtual void Passenger::Session::sendBodyBlock </td>
279
- <td>(</td>
280
- <td class="paramtype">const char *&nbsp;</td>
281
- <td class="paramname"> <em>block</em>, </td>
282
- </tr>
283
- <tr>
284
- <td class="paramkey"></td>
285
- <td></td>
286
- <td class="paramtype">unsigned int&nbsp;</td>
287
- <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
288
- </tr>
289
- <tr>
290
- <td></td>
291
- <td>)</td>
292
- <td></td><td></td><td><code> [inline, virtual]</code></td>
293
- </tr>
294
- </table>
295
- </div>
296
- <div class="memdoc">
297
-
298
- <p>Send a chunk of HTTP request body data to the application. </p>
299
- <p>You can call this method as many times as is required to transfer the entire HTTP request body.</p>
300
- <p>This method must only be called after a <a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671" title="Send HTTP request headers to the application.">sendHeaders()</a>, otherwise strange things may happen.</p>
301
- <dl><dt><b>Parameters:</b></dt><dd>
302
- <table border="0" cellspacing="2" cellpadding="0">
303
- <tr><td valign="top"></td><td valign="top"><em>block</em>&nbsp;</td><td>A block of HTTP request body data to send. </td></tr>
304
- <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The size, in bytes, of <code>block</code>. </td></tr>
305
- </table>
306
- </dd>
307
- </dl>
308
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
309
- <dl><dt><b>Exceptions:</b></dt><dd>
310
- <table border="0" cellspacing="2" cellpadding="0">
311
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1IOException.html" title="Represents an error that occured during an I/O operation.">IOException</a></em>&nbsp;</td><td>The I/O channel has already been closed or discarded. </td></tr>
312
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong during writing. </td></tr>
313
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
314
- </table>
315
- </dd>
316
- </dl>
317
-
318
- </div>
319
- </div>
320
- <a class="anchor" id="a8253d81e64adc0dc72b1dc65a5117aba"></a><!-- doxytag: member="Passenger::Session::sendHeaders" ref="a8253d81e64adc0dc72b1dc65a5117aba" args="(const StaticString &amp;headers)" -->
321
- <div class="memitem">
322
- <div class="memproto">
323
- <table class="memname">
324
- <tr>
325
- <td class="memname">virtual void Passenger::Session::sendHeaders </td>
326
- <td>(</td>
327
- <td class="paramtype">const <a class="el" href="classPassenger_1_1StaticString.html">StaticString</a> &amp;&nbsp;</td>
328
- <td class="paramname"> <em>headers</em></td>
329
- <td>&nbsp;)&nbsp;</td>
330
- <td><code> [inline, virtual]</code></td>
331
- </tr>
332
- </table>
333
- </div>
334
- <div class="memdoc">
335
-
336
- <p>Convenience shortcut for <a class="el" href="classPassenger_1_1Session.html#a8f8a39f78dd2672b00f1ff01e4d6d671" title="Send HTTP request headers to the application.">sendHeaders(const char *, unsigned int)</a>. </p>
337
- <dl><dt><b>Parameters:</b></dt><dd>
338
- <table border="0" cellspacing="2" cellpadding="0">
339
- <tr><td valign="top"></td><td valign="top"><em>headers</em>&nbsp;</td><td>The headers </td></tr>
340
- </table>
341
- </dd>
342
- </dl>
343
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
344
- <dl><dt><b>Exceptions:</b></dt><dd>
345
- <table border="0" cellspacing="2" cellpadding="0">
346
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1IOException.html" title="Represents an error that occured during an I/O operation.">IOException</a></em>&nbsp;</td><td>The I/O channel has already been closed or discarded. </td></tr>
347
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong during writing. </td></tr>
348
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
349
- </table>
350
- </dd>
351
- </dl>
352
-
353
- </div>
354
- </div>
355
- <a class="anchor" id="a8f8a39f78dd2672b00f1ff01e4d6d671"></a><!-- doxytag: member="Passenger::Session::sendHeaders" ref="a8f8a39f78dd2672b00f1ff01e4d6d671" args="(const char *headers, unsigned int size)" -->
356
- <div class="memitem">
357
- <div class="memproto">
358
- <table class="memname">
359
- <tr>
360
- <td class="memname">virtual void Passenger::Session::sendHeaders </td>
361
- <td>(</td>
362
- <td class="paramtype">const char *&nbsp;</td>
363
- <td class="paramname"> <em>headers</em>, </td>
364
- </tr>
365
- <tr>
366
- <td class="paramkey"></td>
367
- <td></td>
368
- <td class="paramtype">unsigned int&nbsp;</td>
369
- <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
370
- </tr>
371
- <tr>
372
- <td></td>
373
- <td>)</td>
374
- <td></td><td></td><td><code> [inline, virtual]</code></td>
375
- </tr>
376
- </table>
377
- </div>
378
- <div class="memdoc">
379
-
380
- <p>Send HTTP request headers to the application. </p>
381
- <p>The HTTP headers must be converted into CGI headers, and then encoded into a string that matches this grammar:</p>
382
- <div class="fragment"><pre class="fragment">
383
- headers ::= header*
384
- header ::= name NUL value NUL
385
- name ::= notnull+
386
- value ::= notnull+
387
- notnull ::= "\x01" | "\x02" | "\x02" | ... | "\xFF"
388
- NUL = "\x00"
389
- </pre></div><p>There must be a header with the name "PASSWORD_CONNECT_PASSWORD", and it must have the same value as the string returned by <a class="el" href="classPassenger_1_1Session.html#aeaf4f7097f7b3430dc88e8070cad5899" title="Returns this session&#39;s process&#39;s connect password.">getConnectPassword()</a>.</p>
390
- <p>This method should be the first one to be called during the lifetime of a <a class="el" href="classPassenger_1_1Session.html" title="Represents a single request/response pair of an application process.">Session</a> object, otherwise strange things may happen.</p>
391
- <dl><dt><b>Parameters:</b></dt><dd>
392
- <table border="0" cellspacing="2" cellpadding="0">
393
- <tr><td valign="top"></td><td valign="top"><em>headers</em>&nbsp;</td><td>The HTTP request headers, converted into CGI headers and encoded as a string, according to the description. </td></tr>
394
- <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The size, in bytes, of <code>headers</code>. </td></tr>
395
- </table>
396
- </dd>
397
- </dl>
398
- <dl class="pre"><dt><b>Precondition:</b></dt><dd>headers != NULL </dd>
399
- <dd>
400
- <a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
401
- <dl><dt><b>Exceptions:</b></dt><dd>
402
- <table border="0" cellspacing="2" cellpadding="0">
403
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1IOException.html" title="Represents an error that occured during an I/O operation.">IOException</a></em>&nbsp;</td><td>The I/O channel has already been closed or discarded. </td></tr>
404
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong during writing. </td></tr>
405
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
406
- </table>
407
- </dd>
408
- </dl>
409
-
410
- </div>
411
- </div>
412
- <a class="anchor" id="a5accbd8f7cce66d0ef6695481fdaa39c"></a><!-- doxytag: member="Passenger::Session::setReaderTimeout" ref="a5accbd8f7cce66d0ef6695481fdaa39c" args="(unsigned int msec)=0" -->
413
- <div class="memitem">
414
- <div class="memproto">
415
- <table class="memname">
416
- <tr>
417
- <td class="memname">virtual void Passenger::Session::setReaderTimeout </td>
418
- <td>(</td>
419
- <td class="paramtype">unsigned int&nbsp;</td>
420
- <td class="paramname"> <em>msec</em></td>
421
- <td>&nbsp;)&nbsp;</td>
422
- <td><code> [pure virtual]</code></td>
423
- </tr>
424
- </table>
425
- </div>
426
- <div class="memdoc">
427
-
428
- <p>Set the timeout value for reading data from the I/O channel. </p>
429
- <p>If no data can be read within the timeout period, then the read call will fail with error EAGAIN or EWOULDBLOCK.</p>
430
- <dl class="pre"><dt><b>Precondition:</b></dt><dd>The I/O channel hasn't been closed or discarded. </dd>
431
- <dd>
432
- <a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
433
- <dl><dt><b>Parameters:</b></dt><dd>
434
- <table border="0" cellspacing="2" cellpadding="0">
435
- <tr><td valign="top"></td><td valign="top"><em>msec</em>&nbsp;</td><td>The timeout, in milliseconds. If 0 is given, there will be no timeout. </td></tr>
436
- </table>
437
- </dd>
438
- </dl>
439
- <dl><dt><b>Exceptions:</b></dt><dd>
440
- <table border="0" cellspacing="2" cellpadding="0">
441
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Cannot set the timeout. </td></tr>
442
- </table>
443
- </dd>
444
- </dl>
445
-
446
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#a960346d8c27ff1ae9017d753e41a159a">Passenger::StandardSession</a>.</p>
447
-
448
- </div>
449
- </div>
450
- <a class="anchor" id="a21dd749c0c8d22f65c6a914ec2f97c94"></a><!-- doxytag: member="Passenger::Session::setWriterTimeout" ref="a21dd749c0c8d22f65c6a914ec2f97c94" args="(unsigned int msec)=0" -->
451
- <div class="memitem">
452
- <div class="memproto">
453
- <table class="memname">
454
- <tr>
455
- <td class="memname">virtual void Passenger::Session::setWriterTimeout </td>
456
- <td>(</td>
457
- <td class="paramtype">unsigned int&nbsp;</td>
458
- <td class="paramname"> <em>msec</em></td>
459
- <td>&nbsp;)&nbsp;</td>
460
- <td><code> [pure virtual]</code></td>
461
- </tr>
462
- </table>
463
- </div>
464
- <div class="memdoc">
465
-
466
- <p>Set the timeout value for writing data from the I/O channel. </p>
467
- <p>If no data can be written within the timeout period, then the write call will fail with error EAGAIN or EWOULDBLOCK.</p>
468
- <dl class="pre"><dt><b>Precondition:</b></dt><dd>The I/O channel hasn't been closed or discarded. </dd>
469
- <dd>
470
- <a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
471
- <dl><dt><b>Parameters:</b></dt><dd>
472
- <table border="0" cellspacing="2" cellpadding="0">
473
- <tr><td valign="top"></td><td valign="top"><em>msec</em>&nbsp;</td><td>The timeout, in milliseconds. If 0 is given, there will be no timeout. </td></tr>
474
- </table>
475
- </dd>
476
- </dl>
477
- <dl><dt><b>Exceptions:</b></dt><dd>
478
- <table border="0" cellspacing="2" cellpadding="0">
479
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Cannot set the timeout. </td></tr>
480
- </table>
481
- </dd>
482
- </dl>
483
-
484
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#abb51c323ac0e24011191862f6dec7a75">Passenger::StandardSession</a>.</p>
485
-
486
- </div>
487
- </div>
488
- <a class="anchor" id="ac579d233ddc82542c336b2af1f40c4dd"></a><!-- doxytag: member="Passenger::Session::shutdownReader" ref="ac579d233ddc82542c336b2af1f40c4dd" args="()=0" -->
489
- <div class="memitem">
490
- <div class="memproto">
491
- <table class="memname">
492
- <tr>
493
- <td class="memname">virtual void Passenger::Session::shutdownReader </td>
494
- <td>(</td>
495
- <td class="paramname"></td>
496
- <td>&nbsp;)&nbsp;</td>
497
- <td><code> [pure virtual]</code></td>
498
- </tr>
499
- </table>
500
- </div>
501
- <div class="memdoc">
502
-
503
- <p>Indicate that we don't want to read data anymore from the I/O channel. </p>
504
- <p>Calling this method after <a class="el" href="classPassenger_1_1Session.html#a7ab85388f15388cb8e65873d1ad310a5" title="Close the I/O stream.">closeStream()</a>/discardStream() is called will have no effect.</p>
505
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
506
- <dl><dt><b>Exceptions:</b></dt><dd>
507
- <table border="0" cellspacing="2" cellpadding="0">
508
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong. </td></tr>
509
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
510
- </table>
511
- </dd>
512
- </dl>
513
-
514
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#ac92d4d081d6145ba8d441c8cf88fae74">Passenger::StandardSession</a>.</p>
515
-
516
- </div>
517
- </div>
518
- <a class="anchor" id="a8263c568a8ac4567b33728d820cbd920"></a><!-- doxytag: member="Passenger::Session::shutdownWriter" ref="a8263c568a8ac4567b33728d820cbd920" args="()=0" -->
519
- <div class="memitem">
520
- <div class="memproto">
521
- <table class="memname">
522
- <tr>
523
- <td class="memname">virtual void Passenger::Session::shutdownWriter </td>
524
- <td>(</td>
525
- <td class="paramname"></td>
526
- <td>&nbsp;)&nbsp;</td>
527
- <td><code> [pure virtual]</code></td>
528
- </tr>
529
- </table>
530
- </div>
531
- <div class="memdoc">
532
-
533
- <p>Indicate that we don't want to write data anymore to the I/O channel. </p>
534
- <p>Calling this method after <a class="el" href="classPassenger_1_1Session.html#a7ab85388f15388cb8e65873d1ad310a5" title="Close the I/O stream.">closeStream()</a>/discardStream() is called will have no effect.</p>
535
- <dl class="pre"><dt><b>Precondition:</b></dt><dd><a class="el" href="classPassenger_1_1Session.html#abf1b6ba182a0fc66c8e617f74afafb92" title="Returns whether this session has been initiated (that is, whether initiate() had...">initiated()</a> </dd></dl>
536
- <dl><dt><b>Exceptions:</b></dt><dd>
537
- <table border="0" cellspacing="2" cellpadding="0">
538
- <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classPassenger_1_1SystemException.html" title="Represents an error returned by a system call or a standard library call.">SystemException</a></em>&nbsp;</td><td>Something went wrong. </td></tr>
539
- <tr><td valign="top"></td><td valign="top"><em>boost::thread_interrupted</em>&nbsp;</td><td></td></tr>
540
- </table>
541
- </dd>
542
- </dl>
543
-
544
- <p>Implemented in <a class="el" href="classPassenger_1_1StandardSession.html#a045a8f7f849c34086b0832fdba7a2915">Passenger::StandardSession</a>.</p>
545
-
546
- </div>
547
- </div>
548
- <hr/>The documentation for this class was generated from the following file:<ul>
549
- <li><a class="el" href="Session_8h_source.html">Session.h</a></li>
550
- </ul>
551
- </div>
552
- <hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
553
- <a href="http://www.doxygen.org/index.html">
554
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
555
- </body>
556
- </html>