kou commented on PR #34817:
URL: https://github.com/apache/arrow/pull/34817#issuecomment-1824593759

   Thanks for the suggestions.
   I haven't try this yet but can I reuse `ServerSessionMiddleware` for my 
case? Or should I implement a similar middleware from scratch?
   
   > I think if you put any authentication middleware first, then it can reject 
unauthenticated requests and you can always create a session after that.
   
   Sorry. I was wrong. I need to create a new session for authentication. 
Because I need to create a separated process to use PostgreSQL's API. Flight 
SQL is mutlithreading but PostgreSQL's API isn't multithread safe. So I need to 
use a single thread separated process to use PostgreSQL's API. If the 
authentication is failed, the session is closed immediately.


-- 
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]

Reply via email to