Browse Source
now when a constructor returns -1 the new call will in turn call the destructor effectively freeing all resources. ATTENTION: now the destructor has to be aware that it might be called with a not completely initialized object. To make this more ease there is the FREE makro with the corresponding ffree that does NULL pointer checking and the destructor checks for NULL pointer too. Additionally the handle_accept now handles _SC_OPEN_MAX - 10 connections. The 10 are reserved for internal usage.
master
now when a constructor returns -1 the new call will in turn call the destructor effectively freeing all resources. ATTENTION: now the destructor has to be aware that it might be called with a not completely initialized object. To make this more ease there is the FREE makro with the corresponding ffree that does NULL pointer checking and the destructor checks for NULL pointer too. Additionally the handle_accept now handles _SC_OPEN_MAX - 10 connections. The 10 are reserved for internal usage.
master
19 changed files with 114 additions and 51 deletions
-
12ChangeLog
-
2include/interface/class.h
-
26include/server.h
-
2include/utils/memory.h
-
4src/cbuf.c
-
4src/http/header.c
-
4src/http/message.c
-
7src/http/message/queue.c
-
7src/http/request.c
-
4src/http/request/parser.c
-
4src/http/response.c
-
4src/http/response/writer.c
-
4src/http/worker.c
-
9src/interface/class.c
-
4src/logger.c
-
22src/server.c
-
6src/server/handle_accept.c
-
4src/socket.c
-
16src/testserver.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue