Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Do not try to close free state slots. | f17b6d92d668f72de10967ae9178131916db64c8 | Catalin(ux) M. BOIE | 2009-03-09 10:29:35 |
TODO: More entries added (timer optimization). | 0b0be1574b15e7dae4b7dca9f02f0ff78bc02136 | Catalin(ux) M. BOIE | 2009-03-09 10:27:37 |
Raised debug level for compacting phase. | d610f3d45075311f9f21c7c122dfefa773c48a64 | Catalin(ux) M. BOIE | 2009-03-09 10:17:41 |
Bump up the version. | b8a55af5786f74ea38e5929af347cfc79f0d3dfd | Catalin(ux) M. BOIE | 2009-03-09 10:14:10 |
Moved free_intern in the periodic scanning to not miss connections in listen. | 5fb989866b1ceb68e64e62e035610c40cf519c03 | Catalin(ux) M. BOIE | 2009-03-09 10:05:03 |
More clear logging. | 3599fc41cce9bd25e5461d0c4350780f4dbc64a6 | Catalin(ux) M. BOIE | 2009-03-09 10:04:47 |
Bump up the version. | 64a2ec25c265a6750b25e7bd5be85f66766e4cf4 | Catalin(ux) M. BOIE | 2009-03-09 08:59:22 |
Fixed a bug preventing a socket in listen state to be closed. | 287e366451321862731e005d48391ed39149693b | Catalin(ux) M. BOIE | 2009-03-09 08:58:51 |
Duilder updates. | 30f5e95e50703f2bb3e5ba6f088b09f858e0e95c | Catalin(ux) M. BOIE | 2009-03-09 08:58:40 |
Extended timeout to 1000ms from 500ms. No need to wake up too frequent. | ea268527d103d09685192399bbad6ebbd22430e8 | Catalin(ux) M. BOIE | 2009-03-06 13:11:36 |
Bump version in duilder. | cbe72841517c536aa714fd8dfdbe1799248664e2 | Catalin(ux) M. BOIE | 2009-03-05 15:35:37 |
Added suport to bind to a specific IP. | 5de8bd574a0bd2b57cc0ea98c4c20186dcfc9d8c | Catalin(ux) M. BOIE | 2009-03-02 13:59:07 |
TODO: Added bind to ip and access control. | d7dd6bd61fdb4974da679979f05913cc24c9c0ae | Catalin(ux) M. BOIE | 2009-03-02 13:34:13 |
Lot of small changes that were need to fix epoll integration. | 92877346e9cbecc7bea6f6d342e6d03475349878 | Catalin(ux) M. BOIE | 2009-02-26 12:20:07 |
Fixed the server example to output a \n terminated line. | ed20ea84c9c6bd5dc9a3c066d03e4c8a049e1369 | Catalin(ux) M. BOIE | 2009-02-26 12:16:33 |
Added an accept_error callback to server example (s.c). | 7014b75488c82c4b1f1c5b52cf7d4d2278719f4d | Catalin(ux) M. BOIE | 2009-02-26 12:15:56 |
Fixed exit from client example (c.c) to catch leaks. | b912a406c59719919d3d98f4ca92cbbb3f986e99 | Catalin(ux) M. BOIE | 2009-02-26 12:15:08 |
Added queue stuff - not used for now. | b913455733a88e63bea980e7490d4f36766e15fc | Catalin(ux) M. BOIE | 2009-02-26 10:50:56 |
Constify a lot of parameters and added more consistent logging. | 8b15034895c7e63be9b9ca68e4b41c9a52618d10 | Catalin(ux) M. BOIE | 2009-02-26 10:46:05 |
Stuff in/out. | 074bc88cec80384ade2f4309840a7d2c6f15a700 | Catalin(ux) M. BOIE | 2009-02-26 10:41:16 |
File | Lines added | Lines deleted |
---|---|---|
Conn.c | 4 | 2 |
File Conn.c changed (mode: 100644) (index ab3253e..d85b0e9) | |||
... | ... | static void Conn_free_intern(struct Conn *C) | |
246 | 246 | C->conn_syn.tv_sec = 0; | C->conn_syn.tv_sec = 0; |
247 | 247 | C->conn_syn.tv_usec = 0; | C->conn_syn.tv_usec = 0; |
248 | 248 | ||
249 | /* Misc */ | ||
250 | C->error_state = 0; | ||
251 | |||
249 | 252 | if (C->flags & CONN_FLAGS_AUTO_RECONNECT) { | if (C->flags & CONN_FLAGS_AUTO_RECONNECT) { |
250 | 253 | C->tryat = Conn_now.tv_sec + C->delay; | C->tryat = Conn_now.tv_sec + C->delay; |
251 | C->error_state = 0; | ||
252 | 254 | C->state = CONN_STATE_CONNECT_0; | C->state = CONN_STATE_CONNECT_0; |
253 | 255 | ||
254 | 256 | C->ibuf_head = 0; | C->ibuf_head = 0; |
... | ... | int Conn_poll(const int timeout) | |
1152 | 1154 | while (i < Conn_no) { | while (i < Conn_no) { |
1153 | 1155 | C = &Conns[i]; | C = &Conns[i]; |
1154 | 1156 | ||
1155 | /* Closing connection if in error state */ | ||
1157 | /* Closing connection if it is in error state */ | ||
1156 | 1158 | if (C->error_state > 0) | if (C->error_state > 0) |
1157 | 1159 | Conn_free_intern(C); | Conn_free_intern(C); |
1158 | 1160 |