Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Improved Conn_split_* and removed a bad leak! | f47f85c65ac5781d9419b58b20db632772947c64 | Catalin(ux) M. BOIE | 2009-12-06 01:24:58 |
Bump up the version. | 4788a6979d84939cc7aaf824ef8e0b7357cab6cc | Catalin(ux) M. BOIE | 2009-12-07 12:50:16 |
Duilder updates. | 1b717c718189468006ff0e7fb228571e76fb97e6 | Catalin(ux) M. BOIE | 2009-12-07 12:49:55 |
Exported Conn_engine_set function. | 1c69de5306d302fcd6b3e6351d3e28771b08bb05 | Catalin(ux) M. BOIE | 2009-11-12 15:18:40 |
Bumped up the version to 1.0.29. | ee219d6016983a64187cfe0866c597419f464535 | Catalin(ux) M. BOIE | 2009-09-18 12:07:41 |
Fix Conn_poll(-1)! Stupid me! | 4ce77092baec7cbbfcd8d943838aa7eeefedbc8e | Catalin(ux) M. BOIE | 2009-09-18 12:07:04 |
Bump up the version to 1.0.28. | deea1515d967c7b0708e25fe146799a09c5c2dc8 | Catalin(ux) M. BOIE | 2009-09-18 11:15:46 |
Do poll in 1000ms steps, even if Conn_poll is called with != 1 value. Else, triggers are not called! | 59b4d5d8db5a4a9048f61ad836e67c824bb1ac95 | Catalin(ux) M. BOIE | 2009-09-18 11:15:04 |
Bumbed up the version to 1.0.27. | 62ffc3a45094bd4b2d345d7ba37c862e1605050c | Catalin(ux) M. BOIE | 2009-09-18 09:43:03 |
More clear what error message is. | acd5309c8de872f618a1055258614cf542dadf51 | Catalin(ux) M. BOIE | 2009-09-18 09:42:38 |
Compact totals. | e85a25c33e9f716317932b6ee7f4b3ae6c459ff9 | Catalin(ux) M. BOIE | 2009-09-18 09:37:19 |
Cosmetic changes. | 14da1b82e17275b6869493fa15e931536b77e547 | Catalin(ux) M. BOIE | 2009-09-18 09:31:23 |
Log also how many pending connections are after trytoconnect call. | 4cd341f53a426cb49e437a46388b586913c0c859 | Catalin(ux) M. BOIE | 2009-09-18 09:30:47 |
Bumped up the version to 1.0.26. | 2c68c221bf5ef3f5a0779e94c0448231b9fd630f | Catalin(ux) M. BOIE | 2009-09-18 08:31:14 |
Fixed a bug regarding work_to_do (decrementing on bind errors). | 8b8585685bdd07d0e1df9a7ca9e41ecca9cc73bf | Catalin(ux) M. BOIE | 2009-09-18 08:30:10 |
Log also commit function. | c920c0191bebc71b18bc318803db7f02ddc7b77f | Catalin(ux) M. BOIE | 2009-09-18 08:21:53 |
Log also work_to_do. | a7c800b63e6ca4384726c7269e097c4f76f9991e | Catalin(ux) M. BOIE | 2009-09-18 07:51:26 |
Conn_eat logs also the slot. | f65411260656b348ea34da12e7bbcbe62d7350f6 | Catalin(ux) M. BOIE | 2009-09-18 07:47:10 |
More logging in hang-up case. | 325c292c46f8deb6e621836f16dec2d43cc5aea9 | Catalin(ux) M. BOIE | 2009-09-18 07:30:39 |
Bumbed up the version to 1.0.25. | 379d8e2aa9df2b504cc5f539981fecf0d882c509 | Catalin(ux) M. BOIE | 2009-09-17 14:47:48 |
File | Lines added | Lines deleted |
---|---|---|
Conn_engine_core.c | 6 | 8 |
File Conn_engine_core.c changed (mode: 100644) (index 4f4f72c..36c6828) | |||
... | ... | void Conn_split_free(struct Conn_split **s) | |
1252 | 1252 | q = next; | q = next; |
1253 | 1253 | } | } |
1254 | 1254 | ||
1255 | free(p->line); | ||
1255 | if (p->line) | ||
1256 | free(p->line); | ||
1256 | 1257 | ||
1257 | 1258 | free(p); | free(p); |
1258 | 1259 | } | } |
... | ... | struct Conn_split *Conn_split(const char *line0) | |
1281 | 1282 | if (!ret->line) { | if (!ret->line) { |
1282 | 1283 | snprintf(Conn_error, sizeof(Conn_error), | snprintf(Conn_error, sizeof(Conn_error), |
1283 | 1284 | "cannot alloc memory for line duplication!\n"); | "cannot alloc memory for line duplication!\n"); |
1284 | goto free_ret; | ||
1285 | goto free; | ||
1285 | 1286 | } | } |
1286 | 1287 | ||
1287 | 1288 | Conn_rtrim(ret->line, "\r\n \t"); | Conn_rtrim(ret->line, "\r\n \t"); |
... | ... | struct Conn_split *Conn_split(const char *line0) | |
1337 | 1338 | if (!q) { | if (!q) { |
1338 | 1339 | snprintf(Conn_error, sizeof(Conn_error), | snprintf(Conn_error, sizeof(Conn_error), |
1339 | 1340 | "cannot alloc memory!\n"); | "cannot alloc memory!\n"); |
1340 | goto out_free; | ||
1341 | goto free; | ||
1341 | 1342 | } | } |
1342 | 1343 | q->left = left; | q->left = left; |
1343 | 1344 | q->right = right; | q->right = right; |
... | ... | struct Conn_split *Conn_split(const char *line0) | |
1346 | 1347 | if (ret->head == NULL) | if (ret->head == NULL) |
1347 | 1348 | ret->head = q; | ret->head = q; |
1348 | 1349 | else | else |
1349 | ret->head->next = q; | ||
1350 | ret->tail->next = q; | ||
1350 | 1351 | ||
1351 | 1352 | ret->tail = q; | ret->tail = q; |
1352 | 1353 | } | } |
1353 | 1354 | ||
1354 | 1355 | return ret; | return ret; |
1355 | 1356 | ||
1356 | out_free: | ||
1357 | free(ret->line); | ||
1358 | |||
1359 | free_ret: | ||
1357 | free: | ||
1360 | 1358 | Conn_split_free(&ret); | Conn_split_free(&ret); |
1361 | 1359 | ||
1362 | 1360 | return NULL; | return NULL; |