Commit Graph

117 Commits

Author SHA1 Message Date
mrigaya
743ea74da9 Add regression tests for URL redirection. 2018-06-01 17:49:28 +05:30
mrigaya
547af74dee Add ping handler and URL redirection changes. 2018-05-30 14:50:48 +05:30
skrishnamoorthy01
c57c9d7eec Update nopoll version to 0.4.6 2018-05-30 12:44:24 +05:30
Weston Schmidt
14b70eb727 Merge pull request #24 from cableramki/master
Fixed build on Mac.
2018-03-02 20:58:30 -08:00
Ramki Ananthakrishnan
3c286b73d7 Fixed error due to implicit conversion from unsigned 'int' to 'char'.
The nopoll API expect 'char'. It does not seem to matter what values are passed for the testing as these values are random and not being checked anywhere for verification.
2018-03-01 12:01:24 -08:00
skrishnamoorthy01
9b68a74d1f Update nopoll from 0.4.4 to 0.4.5 release 2018-01-11 19:38:23 +05:30
Francis Brosnan Blázquez
d8c65dda40 nopoll:
* [fix] updated nopoll-regression-common.h to include additional
  headers required by test19 reg test.
2017-08-06 17:54:28 +02:00
Francis Brosnan Blázquez
bacbebd0a5 nopoll:
* [fix] Updated client regression test to include new test (test-02-b) to
  test client side ping support. 
* [fix] Updated client regression test to avoid checking sslv23 when Openssl 
  is too new.
2017-08-06 17:53:51 +02:00
Francis Brosnan Blázquez
f6df297ae9 nopoll:
* [fix] Fixed wrong listener7 (port 1240 running tlsv12) check. Closes
  https://github.com/ASPLes/nopoll/issues/30 
  Reported by https://github.com/rfish001
2017-08-06 14:02:38 +02:00
Francis Brosnan Blázquez
f64fafcbf6 nopoll:
* [fix] Updated nopoll-regression-client.c to better detect and deprecate
  TLS flexible API (debian stretch)
2017-06-30 21:24:50 +02:00
Francis Brosnan Blázquez
5d5dd1a16e nopoll:
* [fix] Improved nopoll-regression-client (test-04-c) to avoid calling to
  flush pending writes when there's nothing and to check that pending + written
  equals to requested in order to signal precissely what's happending. Making
  the code to also report this values so developer can see what's going on.
2017-06-30 15:39:54 +02:00
Francis Brosnan Blázquez
d8da6ec352 nopoll:
* [fix] Updated nopoll-regression-client.c to define ETIMEDOUT in case it is not
  available (windows platform).
* [fix] Fixed compilation failure (nopoll_listener.c) while compiling on windows
  and having debug disabled.
2017-06-09 19:50:38 +02:00
Francis Brosnan Blázquez
1ae49f1a1f nopoll:
* [fix] Several updates to change new address
2017-06-09 17:45:45 +02:00
Javier Celaya
6b0fc60c17 Include $(top_builddir)/src when building tests
This is needed when doing an out-of-sources build, to find
nopoll_config.h
2016-12-16 09:01:03 +01:00
Francis Brosnan Blázquez
c1dd2ac183 nopoll:
* [fix] Updated noPoll regression test to check new funcitons for IPv6
  support. Everything working and valgrind checked..
2016-11-03 19:58:35 +01:00
Francis Brosnan Blázquez
ebbbf88d45 nopoll:
* [fix] Minor contact update inside regression tests.
2016-07-22 19:41:55 +02:00
Francis Brosnan Blázquez
0bb683e7bc nopoll:
* [fix] Updated nopoll-regression-client.c to also detect errno ETIMEDOUT
  in test-04b (fixes Mac/os regression test).
2016-07-14 15:08:52 +02:00
Francis Brosnan Blázquez
01b6b03409 nopoll:
* [fix] Updated nopoll.h header to set a default FD_SETSIZE to 4096 
  so users can have a bigger default values for precompiled binaries. 
  Added documentation to explain how to change/update this value. 
  The value is only applied when including project do not define it
  before hand.
2016-06-14 10:05:15 +02:00
Francis Brosnan Blázquez
3c05fbb412 nopoll:
* [fix] Several fixings applied to allow compiling noPoll on Windows (Windows 7 64 tested).
  Renamed parameters using "interface" keyword. Removed conditionally binding interface
  code so it is not available on windows (until we have support for it). Added header 
  definitions for nopoll_config_win32/win64.h to include headers for SSL/TLS includes.
  Fixed compilation errors in regression tests.
2016-06-10 17:41:25 +02:00
Francis Brosnan Blázquez
012a6ff112 nopoll:
* [fix] Additional fixings to remove support for SSLv3 when not
  available
2016-06-10 11:23:11 +02:00
Francis Brosnan Blázquez
c89cf9ba53 nopoll:
* [fix] More fixings to ensure noPoll compiles when SSLv3
  APIs are not available..
2016-06-10 11:13:41 +02:00
Francis Brosnan Blázquez
5a1042bbc2 nopoll:
* [fix] added support to detect SSLv3 methods and remove support for it
  in the case they are not present. Added missing pthread_mutexattr_init/destroy
  inside regression test.
2016-06-10 00:38:19 +02:00
Francis Brosnan Blázquez
ed82f513a9 nopoll:
* [fix] Several to fix dead locks and races when using non-recursive
  mutexes through nopoll_thread_headers. Fixed dead lock when connection
  close received while using nopoll_loop_wait API (reported by Ondrej
  Zaruba). Updated nopoll_conn_ref/unref to fix possible races. Added
  reg test (test_36) to reproduce and check fix introduced.
2016-06-09 21:29:12 +02:00
Francis Brosnan Blázquez
b1fd6697e2 nopoll:
* [fix] Updated nopoll regression test code to use threading locking
  code by default to ensure that all code tested is under threading
  support (which at the end covers non threaded code).
2016-06-09 17:54:11 +02:00
Francis Brosnan Blázquez
8d43ca0ce9 nopoll:
* [fix] Several updates to make nopoll compilation process
  to detect all SSL/TLS methods available and update headers
  so noPoll internal code can react but also API consumers can
  also take advantage of these indications. Added support for 
  TLS1.2 and for TlS flexible configuration (though added
  security considerations to it). Updated regression test test_19
  to check TLSv1.2 client and server support.
2016-06-09 13:02:32 +02:00
Francis Brosnan Blázquez
4bc7339708 nopoll:
* [fix] Several updates to detect when __nopoll_conn_get_ssl_context fails
  to report a valid SSL_CTX (fixed updated test_19). 

* [fix] Updated header read handling to support all cases when a
  splitted/broken header is received. Added regression tests test_31,
  test_32, test_33, test_34 and test_35 to simulate and support different
  scenarios where part of the header is received and then the rest...
2016-05-15 23:03:44 +02:00
Francis Brosnan Blázquez
989630de27 nopoll:
* [fix] fixed broken connection problem caused by some WebSocket
  clients that send headers using different send operations (rather
  than one single operation) causing the header to be received splitted.
  Added regression test_30 to reproduce the problem and check fix
  introduced. Problem reported by Rahul Kale (barco.com)
2016-04-21 10:48:07 +02:00
Francis Brosnan Blázquez
edfc89f6bd nopoll:
* [fix] Making max ssl retries (for nopoll_conn) to try for 10 seconds
  instead of just 1 second (which is too short by default for most of
  the servers). This only affects client side code
2016-04-11 16:03:27 +02:00
Francis Brosnan Blázquez
77e615bc5e nopoll:
* [fix] Changed ERROR for WARNING message in nopoll-regression-client.c
2016-04-11 15:53:40 +02:00
Weston Schmidt
3fcb95b729 Adding the ability to send arbitrary HTTP headers to a server. This doesn't add the ability to process arbitrary headers as a server. 2016-04-10 23:41:56 -07:00
Francis Brosnan Blázquez
94ca39ca3a nopoll:
* [fix] Updated makefiles to control gcc compiler
  for w64 (windows) platform..
2016-02-25 18:08:56 +01:00
Francis Brosnan Blázquez
5f515cc87e nopoll:
* [fix] Fixed regression test which shows a false positive error
  when used under slow systems like raspberry
2016-02-10 10:53:52 +01:00
Francis Brosnan Blázquez
50ffe3f63f nopoll:
* [fix] Fixed warnings at nopoll-regression-client.c (FreeBSD 10 i386)
2016-01-07 18:47:13 +01:00
Francis Brosnan Blázquez
b8e0d51429 nopoll:
* [fix] Corrected signature at nopoll's manual (reported by Neil Kolban)
2015-12-12 09:12:48 +01:00
Francis Brosnan Blázquez
2567bdf9e0 nopoll:
* [fix] Copyright updates..
2015-09-03 18:37:06 +00:00
Francis Brosnan Blázquez
089c63a768 nopoll:
* [fix] Minor fixings at nopoll-regression-client.c to correct
  Windows64 compilation errors..
2015-08-28 14:39:55 +00:00
Francis Brosnan Blázquez
d8a292fd3a nopoll:
* [new] Updated noPoll conn API to include a new function to allow closing
  a connection, sending an error message and an error code along with it:

  - nopoll_conn_close_ext

* [fix] Added regression test (test_28) to check connection close frame
  with status and reason to check functions added:

  - nopoll_conn_get_close_status 
  - nopoll_conn_get_close_reason

  Everything working as expected..
2015-08-16 17:10:42 +00:00
Francis Brosnan Blázquez
ebb1c49c6f nopoll:
* [fix] Fixed FreeBSD support. ENOTCONN wasn't handled on connection. For
  some reason socket API is reported ENOTCONN when the should be reporting
  EINPROGRESS or EWOULDBLOCK

* [fix] Updated log handler reporting so it is triggering when a user handler
  is configured via nopoll_log_set_handler (even in the case log reporting
  is disabled).

* [fix] Added new option call --show-only-critical to regression tests client
  to show only critical messages.
2015-08-06 17:13:10 +00:00
Francis Brosnan Blázquez
ad10305ce2 nopoll:
* [fix] General update to allow setting and handling protocol requested
  and supported by the client and server. Updated regression test (test_27)
  to check all changes introduced. API added:

  - nopoll_conn_get_accepted_protocol
  - nopoll_conn_get_requested_protocol
  - nopoll_conn_set_accepted_protocol
2015-05-28 13:59:21 +00:00
Francis Brosnan Blázquez
7c48b9e5f6 nopoll:
* [fix] Fixed support for protocol notified by the server, reported by
  Rahul Kale (barco.com). Added regression test (test_27) to check fix
  introduced.
2015-05-28 12:31:19 +00:00
Francis Brosnan Blázquez
a25befd910 nopoll:
* [fix] Fixed test_26 test..
2015-05-28 11:58:46 +00:00
Francis Brosnan Blázquez
ee41983dd3 nopoll:
* [fix] Added regression test to check echo.websocket.org Kaazing
  support (test_26). Everything working without any issue.
2015-05-28 11:55:02 +00:00
Francis Brosnan Blázquez
6b6b319d4b nopoll:
* [fix] Added additional regress iontest (test_25) to check 
  cookie attack. Nothing was reported because the test..
2015-05-07 09:53:37 +00:00
Francis Brosnan Blázquez
843ca30a37 nopoll:
* [new] Added support to handle and set cookie configured for
  every connection. Regression test added to check this (test_24). 
  API added:

  - nopoll_conn_get_cookie
  - nopoll_conn_new_opts
  - nopoll_conn_opts_set_cookie
2015-05-06 17:05:05 +00:00
Francis Brosnan Blázquez
2d7f21972d nopoll:
* [fix] Added a subtlety to report a EWOULD errno just after
  finished TLS handshake to ensure the caller can report NULL
  but it is not understood as a connection failure by an upper
  level API. Fixes MyQtt WebSocket over TLS WebSocket integration
  reported.
2015-04-30 19:40:42 +00:00
Francis Brosnan Blázquez
85846465ad nopoll:
* [fix] Updated certificates needed by reg test-21. Added script to 
  generate certificates used by this test.
2015-04-11 18:18:52 +00:00
Francis Brosnan Blázquez
cfcf61276d nopoll:
* [fix] Several updates to enable support to build rpm packages
  for noPoll.
2015-04-07 09:11:19 +00:00
Francis Brosnan Blázquez
5ee0e5cfb7 nopoll:
* [fix] Adding support to create centos packages for noPoll
  library.
2015-04-01 17:14:03 +00:00
Francis Brosnan Blázquez
d0ce785cac nopoll:
* [fix] added explicit references to ssl libraries for 
  regression test binaries.
2015-03-08 13:04:37 +00:00
Francis Brosnan Blázquez
121b48cf72 nopoll:
* [fix] Some changes to compile regression-test on windows7 (64 bits).
2014-12-22 15:17:40 +00:00