dff9007aa6
Updated (un)install script to include new network, httpd, and websocket libraries.
es_rev99306
Jocelyn Fiat2016-10-18 13:29:47 +02:00
c34f89df9b
Added connection header related functions. - WSF_REQUEST.is_keep_alive_http_connection: BOOLEAN - HTTP_HEADER_MODIFIER.put_connection_keep_alive - HTTP_HEADER_MODIFIER.put_connection_close In Standalone request handler code, better detection of Connection: keep-alive header.
Jocelyn Fiat2016-10-18 13:22:32 +02:00
4a47a00747
Better all-safe.ecf file under wsf/connector .
Jocelyn Fiat
2016-10-15 22:37:16 +02:00
12508c8e21
Updated to use new standalone option names.
Jocelyn Fiat
2016-10-15 22:19:19 +02:00
3d58ef84fa
Fixed void-safety settings on web_socket_protocol.ecf .
Jocelyn Fiat
2016-10-15 22:14:03 +02:00
3a120f3311
Updated http_client library to benefit from http_network library.
Jocelyn Fiat
2016-10-15 21:42:51 +02:00
d45b90e52a
Fixed ecf to get them compiled.
Jocelyn Fiat
2016-10-14 17:57:02 +02:00
c74b9e0c45
The network classes are now under http_network library, thus renamed the header file as ew_network.h .
Jocelyn Fiat2016-10-14 16:46:26 +02:00
b8aee435dd
Updated simple_ssl example to use directly the standalone connector, and use the new WSF_STANDALONE_SERVICE_OPTIONS class. Added WSF_STANDALONE_SERVICE to make it easy to use directly.
Jocelyn Fiat2016-10-14 15:13:27 +02:00
a4d737d548
Be sure to use ecf custom variable "ssl_enabled" and not the variant "httpd_ssl_enabled" or else. Include again the openssl include folder for EiffelStudio before 16.11, otherwise eif_openssl is not found.
Jocelyn Fiat
2016-10-14 14:32:04 +02:00
16f667af2c
Reverted a few ecf files from ecf version 1-16-0 to ecf version 1-15-0. Added target "http_network_ssl" to test http_network with ssl support.
Jocelyn Fiat
2016-10-14 14:00:03 +02:00
27a5c9d969
Fixed http_network compilation for EiffelStudio before version 16.11.
Jocelyn Fiat
2016-10-14 13:51:57 +02:00
32ad7f0c65
Merged changes related to websocket and restructured httpd, http_ network libraries.
Jocelyn Fiat2016-10-14 13:17:17 +02:00
78f24ecb37
Updated ws.ini (for now, keep is_secure False, due to remaining issue with websocket and SSL implementation).
Jocelyn Fiat2016-10-14 13:11:26 +02:00
1161e541fa
Accept "yes" or "true" in wsf launcher option boolean values. Set socket_error when network occurs in read_to_managed_pointer_noexception.
Jocelyn Fiat2016-10-14 13:10:44 +02:00
d4ec640ac8
Renamed many classes and feature to use "secure" term instead of "ssl". (note, the .ecf are still using the "ssl" terminologie). Provided easy way to set secure settings for Standalone. For wsf launcher boolean option accept "true" or "yes" for True boolean, anything else is False.
Jocelyn Fiat2016-10-14 11:52:48 +02:00
01a9d02586
Added websocket examples for the server and client.
Jocelyn Fiat2016-10-13 22:01:50 +02:00
1e4203111f
Use socket .._noexception functions in websocket networking.
Jocelyn Fiat2016-10-13 21:55:53 +02:00
b84f4838f5
Added new WSF_STANDALONE_SERVICE_OPTIONS, a descendant of WSF_SERVICE_LAUNCHER_OPTIONS specialized for standalone connectors.
Jocelyn Fiat2016-10-13 21:55:16 +02:00
8b43cb909a
Do not use put_readable_string_8_noexception, and just update put_string_8_noexception to accept READABLE_STRING_8.
Jocelyn Fiat2016-10-13 21:53:12 +02:00
897f64e4fe
Reuse http_network library. Reintroduced HTTPD_STREAM_SOCKET for backward compatibility, and ease of usage. Added websocket libraries (client, and protocol).
Jocelyn Fiat2016-10-13 16:25:11 +02:00
981942b2d6
Extracted network socket classes from httpd folder, and created a new library/network/http_network library. Renamed HTTPD_STREAM_SOCKET as HTTP_STREAM_SOCKET. Made http_client (net) library use the new http_network library.
Jocelyn Fiat2016-10-12 23:27:55 +02:00
c132d7734b
Moved httpd library from ewsgi/connectors/standalone/lib/httpd to httpd. Reused the http_network library as well inside httpd library.
Jocelyn Fiat2016-10-12 22:54:21 +02:00
b66cfce138
Use custom variable net_ssl_enabled instead of httpd_ssl_enabled for the http_netword lib.
Jocelyn Fiat
2016-10-12 22:23:26 +02:00
d28f794828
Implemented chunked Transfer-Encoding in net_http_client. Implemented support for buffer_size and chunk_size for net_http_client.
es_rev99291
Jocelyn Fiat2016-10-12 16:49:08 +02:00
ef704790a8
Fixed the "wsf_tests" autocase suite, which was wrong for cookies, and other minor changes.
Jocelyn Fiat2016-10-12 11:21:27 +02:00
57b1691243
Added support for debug.ini to debug example.
Jocelyn Fiat2016-10-12 11:19:54 +02:00
29590b1c0d
Fixed potential issue related to PATH_INFO, and percent_encoded_path_info computing , when script name is in different path.
Jocelyn Fiat2016-10-12 11:19:23 +02:00
ed959042d7
Fixed issue with input using "Transfer-Encoding: chunked".
Jocelyn Fiat2016-10-12 11:12:37 +02:00
1170417e54
Fixed regression with persistent connection, be sure to keep the remote_info data for all successive requests within a same persistent connection.
es_rev99283
Jocelyn Fiat2016-10-11 17:34:07 +02:00
2cfe00e61b
Updated desktop_app example with embedded standalone web server.
Jocelyn Fiat2016-10-11 17:30:50 +02:00
a498a167ed
Updated desktop application example for scoop concurrency mode.
Jocelyn Fiat2016-10-11 16:20:04 +02:00
f12158e535
Use the ..._noexception network features in the WGI standalone input and output classes.
es_rev99277
Jocelyn Fiat2016-10-11 10:57:05 +02:00
080881368a
Also check for SOCKET.was_error when accessing the socket data.
Jocelyn Fiat2016-10-11 10:29:38 +02:00
3e935c7e33
Use `was_error' to get expected behavior on Linux.
Jocelyn Fiat
2016-10-10 22:27:45 +02:00
ad2bb0d1a7
Fixed C compilation on non Windows platform for EiffelStudio until 16.05 . (the required c function are coming with EiffelNet from EiffelStudio 16.11 ).
Jocelyn Fiat
2016-10-10 22:17:41 +02:00
7a546622bc
Updated deprecated EiffelWeb nino to make it compilable with upcoming EiffelStudio 16.11. Updated various projects to make them up-to-date and compilable with this latest EiffelWeb.
Jocelyn Fiat2016-10-10 21:40:15 +02:00
aed7461faf
Improved networking implementation for httpd server and sockets. Use new EiffelNet routines that do not raise exception on error. Made compilable with 16.05 and dev-and-upcoming release 16.11. Fixed various minor issues related to base_url, and added comments.
Jocelyn Fiat2016-10-08 01:10:16 +02:00
56819d6793
Replace Nino by Standalone whenever it is relevant.
Jocelyn Fiat2016-10-08 01:02:12 +02:00
71a98f3c28
Make EiffelWeb standalone easier to debug by using in some locations error instead of exception for network error. - Added C external to use C recv feature with error (as opposed to have exception raised on network error).
Jocelyn Fiat2016-10-05 10:45:57 +02:00
ed22be2551
Commented the execute_bad_request, since it is not ready and will trigger error most of the time.
Jocelyn Fiat2016-10-05 00:04:21 +02:00
21407f8dcf
Fixed SSL support on the httpd component, and also on the EiffelWeb standalone connector. - the standalone connector support for SSL, is using certicate files for now (no in-memory support). - to enable ssl support, set ecf variable httpd_ssl_enabled=true. - added the simple_ssl example to demonstrate how to have standalone ssl server. (be careful when using EiffelNet SSL and the http_client library, disable the libcurl via ecf variable libcurl_http_client_disabled=true )
Jocelyn Fiat2016-09-27 16:11:47 +02:00
356eb143ea
Fixed the non void-safe ecf for wsf_proxy.
Jocelyn Fiat2016-09-26 17:42:49 +02:00
df551d4a4f
Use latest API from http_client using DEFAULT_HTTP_CLIENT, that could use libcurl or EiffelNet depending on the configuration (.ecf).
Jocelyn Fiat2016-09-26 13:13:57 +02:00
9cc9b95190
Added a simple reverse proxy handler. - For now, it does not support SSL connection on the target yet. - No external config file support, this is all about coding.
Jocelyn Fiat2016-08-05 11:38:35 +02:00
8b172b5d33
Revisited WSF_REQUEST.read_input_data* functions: - read_input_data_into_file now accepts a IO_MEDIUM argument instead of just FILE. - cleaned the implementation, and make sure that eventual raw_input_data is containing only the raw input data.
Jocelyn Fiat2016-08-05 11:32:14 +02:00
1b951376f9
Added more application logic for the example.
Jocelyn Fiat2016-06-22 10:52:36 +02:00
193cc3cbde
Renamed WGI_STANDALONE_CONNECTOR_ACCESS as WGI_STANDALONE_CONNECTOR_EXPORTER. Isolate the websocket implementation in descendant of {WEB_SOCKET_EVENT_I}. Added very simple echo websocket example. + code cleaning.
Jocelyn Fiat2016-06-22 10:46:15 +02:00
b49e841ac7
Added WSF standalone_websocket connector, that provides websocket on top of standalone connector.
Jocelyn Fiat2016-06-21 23:37:48 +02:00
8ba74e1c90
Log when a persistent connection is reused. Use anchor type on {WGI_STANDALONE_CONNECTOR}.configuration and {WSF_STANDALONE_SERVICE_LAUNCHER}.connector. Add access to the socket of standalone input stream from {WSF_STANDALONE_CONNECTOR_ACCESS}. Removed a useless redefination in WSF_EXECUTION.
Jocelyn Fiat2016-06-21 23:36:22 +02:00
e384a6d6ed
Make it easier to reuse the http network classes. This is to make it easier for websocket solution to reuse httpd implementation.
Jocelyn Fiat2016-06-16 10:23:30 +02:00
71a5c086a5
Moved httpd from src to lib, under standalone connector.
Jocelyn Fiat2016-06-15 18:04:00 +02:00
dfa60bf8f5
Prepared httpd_stream to be useable for client too. Fixed obsolete tests/dev compilation (mainly to avoid wrong failure reports). added package.iron files.
Jocelyn Fiat2016-06-15 17:56:22 +02:00
113aa69efc
Added advanced settings for standalone connector - max_concurrent_connections=100 - keep_alive_timeout=15 - max_tcp_clients=100 - socket_timeout=300 - max_keep_alive_requests=300 And then can be set via the options as well, and via .ini file. Also improved the verbose console output system.
Jocelyn Fiat2016-06-15 09:19:23 +02:00
af5fc75743
Using passive regions. Improve connector options mainly for standalone connector. Updated "simple" example to return a timestamp.
Jocelyn Fiat2016-06-14 16:01:37 +02:00
e53c960a89
Added libfcgi target, in addition to standalone target for the upload_image example.
es_rev98846
Jocelyn Fiat
2016-05-31 22:24:26 +02:00
63be2c278c
Fixed bad usage of {SOCKET}.socket_ok that resulted in bad behavior on linux.
es_16_05
Jocelyn Fiat
2016-05-31 22:19:52 +02:00
f8ba741aa2
Using -lfcgi as external linker flag, rather than /usr/lib/libfcgi.so .
Jocelyn Fiat
2016-05-31 18:51:15 +02:00
cea57bb09d
fonts copied unders css/fonts
Jocelyn Fiat
2016-05-31 17:13:05 +02:00
62ca6f8b59
Updated to recent bootstrap and jquery version.
Jocelyn Fiat
2016-05-31 17:10:42 +02:00
fe07af587d
Updated link to github pages documentation.
Jocelyn Fiat
2016-05-31 16:57:06 +02:00
bae84f1e29
Updated github pages. - fixed various markdown syntax. - fixed relative path to images. - update text to mention EiffelWeb, and updated version.
Jocelyn Fiat
2016-05-31 16:54:04 +02:00
a3a9dd1393
Fixed link to image or source code in markdown workbook text.
Jocelyn Fiat
2016-05-31 16:51:20 +02:00
fbb860024d
Updated markdown text to conform strictly to kramdown syntax.
Jocelyn Fiat
2016-05-31 16:39:50 +02:00
3938d4422d
Updated with old wiki pages.
Jocelyn Fiat
2016-05-27 10:43:40 +02:00
44f5918e86
Documentation leads right to the workbook page.
Jocelyn Fiat
2016-05-27 09:54:39 +02:00
0fd1f4d993
Converted to kramdown markdown syntax (i.e github / jekyll). Updated content and nav links.
Jocelyn Fiat
2016-05-27 09:52:58 +02:00
a14488346f
Updated to kramdown markdown syntax (i.e github). Updated various content and nav links.
Jocelyn Fiat
2016-05-27 09:51:24 +02:00
2b29b4138d
Updated github web page, and replaced wiki by workbook.
Jocelyn Fiat
2016-05-26 23:31:42 +02:00
f74d1b3069
Updated markdown relative links.
Jocelyn Fiat
2016-05-26 23:11:19 +02:00
1ba3528974
Added readme.md in /doc/. And updated workbook readme.md itself.
Jocelyn Fiat
2016-05-26 10:41:07 +02:00
5890ca6f73
Removed warning about unknown class in export clause.
Jocelyn Fiat2016-05-25 22:51:45 +02:00
ad90e7c135
Fix for missing error reporting in WSF_PUT/POST_HELPER
Colin Adams
2016-05-20 15:32:52 +01:00
cc3c8af6b4
Updated HTTP_COOKIE implementation - by default the Cookie does not set max-age and expires, so it defines a Session Cookie. (max_age and expires attributes are not included in the response) - set_* and unset_* features to define max_age and expire attributes. - marked old features as obsolete. Updated test cases.
es_rev98658
Jocelyn Fiat2016-05-04 12:26:17 +02:00
2ca87d53b8
Added process_transfer to implement process_file. This way, it is easier to redefine the transfert implementation, or the process_file directly, if needed.
Jocelyn Fiat2016-01-18 17:05:35 +01:00
1a4db1d7c6
Eiffel code and ECFs update to support new agent notations. Removed contrib/library/.../json library.
Jocelyn Fiat2016-01-18 16:41:10 +01:00
3bb9101b07
Improved error library by refactorying the sync as two way propagation. Now one can setup error handler propagation in one way, or two way (sync). The "reset" applies in both way, even if this is a one way propagation to fit current existing usage. Added optional id for the error handlers. Feature renaming according to design changes. Added related autotest cases.
Jocelyn Fiat2016-01-12 16:09:29 +01:00