tobegit3hub / simple_tensorflow_serving

Generic and easy-to-use serving service for machine learning models
https://stfs.readthedocs.io
Apache License 2.0
757 stars 192 forks source link

block when enable_ssl is False #80

Closed wykdg closed 4 years ago

wykdg commented 4 years ago

in server.py

def main(): app = WsgiApp(args).app

Run with Flask HTTP server

if args.enable_ssl:

Can pass ssl_context="adhoc" for auto-sign certification

app.run(
    host=args.host,
    port=args.port,
    threaded=True,
    debug=args.debug,
    ssl_context=(args.secret_pem, args.secret_key))

else:

TODO: Use single thread by default

app.run(host=args.host, port=args.port, threaded=False, debug=args.debug)

when use python_predict_client on the website,it will block

tobegit3hub commented 4 years ago

The default configuration of enable_ssl is disable(false) and I'm sure it's not the issue of SSL.

Please try to request the server in web browser or command line(curl). It would be better if we get the log of the server and the client response.