METHOD AND SYSTEM FOR REDIRECTING SERVICE APPLICATION TRAFFIC

    公开(公告)号:US20190199635A1

    公开(公告)日:2019-06-27

    申请号:US16330510

    申请日:2017-08-01

    发明人: Yuanming LIN

    摘要: The present disclosure provides a method and a system for redirecting service application traffic. The method includes traversing dlopen function and connect function in all dynamic libraries initially loaded by a service application module; mounting the dlopen function and the connect function, and replacing the dlopen function and the connect function with a self-defined mydlopen function and a self-defined myconnect function, respectively. Features of the mydlopen function include loading a new dynamic library, mounting the dlopen function and the connect function in the new dynamic library, and replacing the dlopen function and the connect function with the mydlopen function and the myconnect function, respectively. Features of the myconnect function include redirecting non-local traffic of the service application module to a proxy service module, receiving, by the proxy service module, the non-local traffic, and redirecting, by the proxy service module, the non-local traffic.