Menu

[bug] requests are blocked while trying to connect to wrong server

Developers
2018-02-20
2018-03-08
  • Kareem Zidane

    Kareem Zidane - 2018-02-20

    If there's a mistake in the server's URL, any further requests to access Adminer will be blocked until the request that's trying to connect to the wrong server is killed. This is because PHP locks session data to prevent concurrent writing to the same session and Adminer doesn't close the session before trying to connect to the database server.

    Adding session_write_close before calling connect seems to fix the issue but not sure if it breaks anything else.

     

    Last edit: Kareem Zidane 2018-02-20
  • Jakub Vrána

    Jakub Vrána - 2018-02-20

    Adminer calls it but too late. I've moved it before connect.

     
  • Kareem Zidane

    Kareem Zidane - 2018-03-08

    Thank you!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
OSZAR »