Code Monkey home page Code Monkey logo

Comments (3)

pansn1995 avatar pansn1995 commented on May 18, 2024

前辈你好:
http_conn.c 文件的users(就是用户的map),是不是应该设置成staic类型的。如果是非static类型的,每次来一个链接,就应该从数据库拷贝一次用户名和密码表,但http_conn::init()函数没有进行这一操作,webserver.c也只是拷贝了一次。另外,微信群怎么加入啊,希望和大家一起讨论。

感觉http_conn类中的map没有用到,注释掉就可以了,他其实用的是一个全局map的user,好好看看就晓得了

from tinywebserver.

liuwuyao avatar liuwuyao commented on May 18, 2024

前辈你好:
http_conn.c 文件的users(就是用户的map),是不是应该设置成staic类型的。如果是非static类型的,每次来一个链接,就应该从数据库拷贝一次用户名和密码表,但http_conn::init()函数没有进行这一操作,webserver.c也只是拷贝了一次。另外,微信群怎么加入啊,希望和大家一起讨论。

感觉http_conn类中的map没有用到,注释掉就可以了,他其实用的是一个全局map的user,好好看看就晓得了

我明白了,谢谢

from tinywebserver.

qinguoyi avatar qinguoyi commented on May 18, 2024

前辈你好:
http_conn.c 文件的users(就是用户的map),是不是应该设置成staic类型的。如果是非static类型的,每次来一个链接,就应该从数据库拷贝一次用户名和密码表,但http_conn::init()函数没有进行这一操作,webserver.c也只是拷贝了一次。另外,微信群怎么加入啊,希望和大家一起讨论。

群聊超过200人,只能邀请进群了,请加我微信twomonkeyscluber,谢谢。

from tinywebserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.