catalinux / Conn (public) (License: LGPLv2) (since 2016-03-01) (hash sha1)
Net library for easy building ipv4/ipv6 network daemons/clients
List of commits:
Subject Hash Author Date (UTC)
If an error occured in the close phase, do not try to send anymore 20e4e5948c9dacb251a784f031bd7bd7a0db9fcf Catalin(ux) M. BOIE 2022-12-23 10:07:31
Cosmetic 8099e0095edcd1ae33a85ff091165bea7bae2555 Catalin(ux) M. BOIE 2022-10-22 08:22:42
Removed Changelog from .spec fb6a7fb9729da0d2bc5fae4fd5f0dd5636223754 Catalin(ux) M. BOIE 2022-10-21 16:36:27
Websocket changes + cosmetic 7438b1adf4a62d1fc5625224318a4b8922abf8c4 Catalin(ux) M. BOIE 2022-10-21 16:21:59
Fix a gcc warning a85c2219114d8b23a40901364db06580d6a40fce Catalin(ux) M. BOIE 2018-08-18 04:40:25
Notes goes under the title; title is nicer 8acce1da5bc4866b6a4bf7fb2af53750e6749a9a Catalin(ux) M. BOIE 2018-08-18 04:40:08
CSS fixes for showing source 1b96ffce7e3744972be0be246cd33d0b107a8553 Catalin(ux) M. BOIE 2018-08-17 03:42:45
Bump version to 1.0.39 9b34e52482191606aa7f92a781d5b5e33a5543c8 Catalin(ux) M. BOIE 2018-05-20 19:14:39
CSS fixes for wsdemo 7fed15a4b4a7ebc154f68a99eb413fea4726ec26 Catalin(ux) M. BOIE 2018-05-20 19:13:44
More compiler flags for security d33f9fdb57826353c755b86493c72993635b1053 Catalin(ux) M. BOIE 2018-05-20 18:56:42
grid1 is working now 0370e6808f8b89fb9ae43fc139195e76247ad6c5 Catalin(ux) M. BOIE 2018-05-12 15:31:00
Added pie2 demo (svg) e8df18b15deafdd0a810a09a251593ecd5fc608f Catalin(ux) M. BOIE 2018-04-17 21:46:02
wsdemo: added Source button 010d08897f99736b9a3f5440af71c2dc40544e68 Catalin(ux) M. BOIE 2018-04-17 17:54:53
More tweaks to wsdemo 56173807662daf36b36907d98bde751749c91075 Catalin(ux) M. BOIE 2018-04-16 18:08:18
Added a callback for worker start 32a05f401d5258f06af9db15a00a615859961cc2 Catalin(ux) M. BOIE 2018-04-16 18:07:55
wsdemo improvements 3eb3efd007fc9240ea39fabcdb4729d1367ebad2 Catalin(ux) M. BOIE 2018-04-13 22:47:24
wsdemo added 2baae01f2409496f990b6d673013b66286f0a5af Catalin(ux) M. BOIE 2018-04-02 21:41:40
Various small stuff 0c551268be734dd68a59426315abfc6ef776c60a Catalin(ux) M. BOIE 2018-04-02 21:40:49
More debugging for websocket parsing 66ccde632b280f1aa450610e6b671464b7e56451 Catalin(ux) M. BOIE 2018-04-02 21:39:23
Raise to 4096 to buffer for logging a59dee1fdfe087ff13e4c7012fe29f8da99ad75c Catalin(ux) M. BOIE 2018-04-02 21:38:11
Commit 20e4e5948c9dacb251a784f031bd7bd7a0db9fcf - If an error occured in the close phase, do not try to send anymore
Author: Catalin(ux) M. BOIE
Author date (UTC): 2022-12-23 10:07
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2022-12-23 10:07
Parent(s): 8099e0095edcd1ae33a85ff091165bea7bae2555
Signing key:
Tree: ef05e6c5b745a03d29c09758a59373758ae648bf
File Lines added Lines deleted
Conn.c 5 2
File Conn.c changed (mode: 100644) (index d6754c4..c978684)
... ... __hot static void Conn_free_intern(struct Conn *C)
737 737 struct Conn *p, *prev; struct Conn *p, *prev;
738 738
739 739 if (unlikely(Conn_debug_level > 9)) { if (unlikely(Conn_debug_level > 9)) {
740 Log(0, "%llu %s Cleaning-up fd=%d in state %s [%s]...\n",
740 Log(0, "%llu %s: Cleaning-up fd=%d in state %s [%s]...\n",
741 741 C->id, __func__, C->fd, Conn_state(C), Conn_errno(C)); C->id, __func__, C->fd, Conn_state(C), Conn_errno(C));
742 742 } }
743 743
 
... ... __hot void Conn_close(struct Conn *C)
861 861 Log(10, "%llu %s Mark for closing (head=%u tail=%u)\n", Log(10, "%llu %s Mark for closing (head=%u tail=%u)\n",
862 862 C->id, __func__, C->obuf_head, C->obuf_tail); C->id, __func__, C->obuf_head, C->obuf_tail);
863 863
864 if (C->obuf_head == C->obuf_tail) {
864 if (C->error_state != CONN_ERROR_NO_ERROR) {
865 Log(15, "\tWe are in error state, call free_intern\n");
866 Conn_free_intern(C);
867 } else if (C->obuf_head == C->obuf_tail) {
865 868 Log(15, "\tNothing to send, call free_intern\n"); Log(15, "\tNothing to send, call free_intern\n");
866 869 C->error_state = CONN_ERROR_USERREQ; C->error_state = CONN_ERROR_USERREQ;
867 870 Conn_free_intern(C); Conn_free_intern(C);
Date/time (UTC) Type Misc Labels
2023-01-15 11:24 build fedora-37-x86_64 worker/r1 builder/color=fff worker_elap/230s wait_time/1s date/2023-01-15 time/11:19
2023-01-15 11:34 build rocky-8-x86_64 worker/r1 builder/color=fff worker_elap/64s wait_time/790s date/2023-01-15 time/11:19
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/Conn

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/Conn

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/Conn

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main