Commit Graph

11577 Commits

Author SHA1 Message Date
Dmitriy Anisimkov
1b1da59552 Better define Undefined stream
TN: S507-051
2021-10-12 18:35:30 +06:00
Dmitriy Anisimkov
f0e873fe2a Use appropriate Status in server line task attribute
TN: S507-051

HTTP1 use single status from line task stack.
HTTP2 can use different statuses from different streams.
2021-10-12 17:57:21 +06:00
Dmitriy Anisimkov
394626c7fa Fix initial window size and client stream id
Initial window size should be taken from settings for stream.
Client side should accept any stream id from server side.
2021-10-12 17:53:29 +06:00
Pascal Obry
8118b92db4 Fix regression with h2spec due to recent change.
Part of S507-051.
2021-10-12 09:14:50 +02:00
Pascal Obry
df8d61196e Properly handle empty files (so a message without data frame).
Part of S507-051.
2021-10-12 09:14:50 +02:00
Pascal Obry
b24a529037 Merge branch 'po/http2-upload'
* po/http2-upload:
  Initial support for upload in HTTP/2 mode.
  Minor code clean-up.
2021-10-11 18:23:34 +02:00
Pascal Obry
ba170f6a51 Initial support for upload in HTTP/2 mode.
Part of S507-051.
2021-10-11 17:23:49 +02:00
Pascal Obry
76b8fbd40c Minor code clean-up.
Part of S507-051.
2021-10-11 15:47:44 +02:00
Dmitriy Anisimkov
5ddd74408d Add forgotten dummy ALPN_Include body
TN: S507-051
2021-10-11 19:01:56 +06:00
Dmitriy Anisimkov
d924bd4be7 Minor readability improvement
no-tn-check
2021-10-11 16:09:25 +06:00
Dmitriy Anisimkov
78bbc7c48c Set h2 application protocol on secure socket if missed
TN: S507-051
2021-10-11 16:09:25 +06:00
Dmitriy Anisimkov
bd1f19f97c Set H2 ALPN for client side
Fixes connection issue for SSL HTTP2 client.
Minor debug output improvement.

TN: S507-051
2021-10-11 16:09:25 +06:00
Dmitriy Anisimkov
4120f1cf94 Fix connection flow control
Do not need to update connection flow control together with stream
flow control. Connection flow control has to be updated separately.
Fixes file download longer than 2G.

TN: S507-051
2021-10-11 16:09:25 +06:00
Pascal Obry
a2f297bdf3 Add support for HTTP/2 protocol in wsdl2aws tool.
Part of S507-051.
2021-10-09 14:29:33 +02:00
Pascal Obry
7d6cbcb7a1 Add HTTP_Version status in generator.
Part of S507-051.
2021-10-09 14:18:08 +02:00
Pascal Obry
2d37f1bba6 Fix parsing SOAP response in HTTP/2.
Part of S507-051.
2021-10-09 14:17:04 +02:00
Pascal Obry
5f9347774a Minor code clean-up.
Part of S507-051.
2021-10-09 14:16:12 +02:00
Dmitriy Anisimkov
20b34841df Fix authentication in HTTP/2
TN: S507-051
2021-10-08 15:56:29 +06:00
Dmitriy Anisimkov
5a4aaef580 Rewrite SOAP duration representation
no-tn-check

Do not need to use monthes and years in duration representation.
Using years and monthes makes the duration representation depend on current
time, which can be different in client and server parts. By the way remove
the error in days calculation.
2021-10-08 15:56:08 +06:00
Dmitriy Anisimkov
530cac42b2 Reset protocol on server status reset
TN: S507-051
2021-10-08 06:10:46 +06:00
Dmitriy Anisimkov
cea12a42f9 Easy to switch default HTTP client protocol
TN: S507-051
2021-10-08 06:10:46 +06:00
Dmitriy Anisimkov
1a7712c62e Fix warning
no-tn-check

Use record name in constant to avoid
warning: component "SERVER" of type access to "HTTP" is uninitialized
v22.0.0
2021-10-06 18:24:29 +02:00
Pascal Obry
e00b68a7a9 Merge branch 'po/client-http2'
* po/client-http2: (51 commits)
  Simplify code by using To_Lower as in pure HTTP/2 unit.
  Ensure we handle possible corruped data/frames.
  Add some pre-conditions.
  Minor code clean-up.
  Properly initialize the connection object based on settings.
  Clean-up multiple definitions of CRLF.
  Minor code reformatting and clean-up.
  Code refactoring, better sharing.
  Rework the handling of headers for HTTP/2 responses.
  Send_Request_2: Rewrite to properly handle large request & response.
  Read_Body is only to be used with HTTP/1.x.
  Fix POST support, nothing to do if the body is empty.
  New routine HTTP_Version to get the connection's protocol version.
  Add new routine to directly set the headers list.
  Fix implementation of POST without attachment.
  Refactor code for sharing.
  Add initial support for POST with attachments for HTTP/2.
  Properly update connection flow control window.
  Fix wrong initialization of Max_Frame_Size (cut&paste) error.
  Use a unique port for 0345_http2_soap_hello.
  ...
2021-10-06 18:21:40 +02:00
Pascal Obry
70133fec24 Merge branch 'po/fix-ws'
* po/fix-ws:
  Remove duplicate calls to On_Close and Shutdown.
  Make Shutdown_Signal atomic.
  Minor reformatting.
2021-10-06 09:56:01 +02:00
Pascal Obry
69a9eda7c1 Remove duplicate calls to On_Close and Shutdown.
Both routines are called as part of WebSocket_Exception.

Continued work for U504-028.
2021-10-06 09:10:00 +02:00