jira-importer opened a new issue, #1213:
URL: https://github.com/apache/httpcomponents-core/issues/1213

   
**[Andres](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=andressolm96)**
 opened 
**[HTTPCORE-689](https://issues.apache.org/jira/browse/HTTPCORE-689?redirect=false)**
 and commented
   
   I've being followed the example in 
https://github.com/apache/httpcomponents-core/blob/5.1.x/httpcore5/src/test/java/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
   
   This example is working as expected. However when I try to implement a 
SSLContext with the method:
   
   ```java
   final HttpAsyncServer server = 
AsyncServerBootstrap.bootstrap().setIOReactorConfig(config)                
.setTlsStrategy(new BasicServerTlsStrategy(sslContext))
   ...
   
   ```
   
   After triggering a http request, the parseLine is failing with:
   
   ```java
   Exception has occurred: 
org.apache.hc.core5.http.ParseException"org.apache.hc.core5.http.ParseException:
 Invalid request line; error at offset 31: 
<[0x2b][0x2c][0x2d][0x2e]ß[0x30][0x31][0x32]Û[0x34][0x35]WåT¾±)•âJ3Ëɇ€k{Eµ’>"
   ```
   
   I'm not sure if the HTTPS (TLS) handshake is not working as expected in the 
non-blocking message transport classes, because SSLContext it's working fine in 
booking classes.
   
   Or could you provide an example to create a HttpAsyncServer with HTTPS (TLS)
   
   
   ---
   
   **Affects:** 5.1
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to