Georg Hopp
|
1249d85779
|
a fix in size of asset names and change in logging
|
12 years ago |
Georg Hopp
|
26da90232f
|
fix post order traversal used for destruction of existing tree
|
12 years ago |
Georg Hopp
|
b506318d72
|
fix the fix...
|
12 years ago |
Georg Hopp
|
a723c92c74
|
add a small test program for the hash code to find where it leaks memory.
|
12 years ago |
Georg Hopp
|
487c0cfb0b
|
add one missing delete for a node, thus fixing a memory leak in there.
|
12 years ago |
Georg Hopp
|
107896eb9d
|
now do all things within rbtree2 that are also done in rbtree
|
12 years ago |
Georg Hopp
|
5c10e78974
|
now use at minimum page size for an allocated memory segment, and also store this size. This should use the memory more effective.
|
12 years ago |
Georg Hopp
|
c8dc541c48
|
use now my own tree implementation as base for my hashes....sadly this thing is leaking memory again...on the other hand I workarounded the problem of a sometimes occuring infinite loop within connect.
|
12 years ago |
Georg Hopp
|
417b9f6d8f
|
most likely found a bug in the glibc tdelete implementation...don't have the mood of building a simple testcase for reporting. Maybe I do when I have implemented my own trees.
|
12 years ago |
Georg Hopp
|
ac5b20e9ff
|
as I currently have no idea whats the problem I first fixed all warnings...included the ldap warnings that where caused by the use of deprecated ldap_simple_bind_s and ldap_unbind_s.
|
12 years ago |
Georg Hopp
|
87bf963839
|
added forgotten file
|
12 years ago |
Georg Hopp
|
85a33ab3fd
|
I think the problem with keep-alive and concurrency is fixed...the handling in serverRun was still not ok for the non blocking sockets.
|
12 years ago |
Georg Hopp
|
ef89cbdbaa
|
added some first analyse of new problem
|
12 years ago |
Georg Hopp
|
56fdd4bd00
|
changed socket handling according to my definition...and make sockets nonblocking as the answer of poll is just a guess...
|
12 years ago |
Georg Hopp
|
817758272a
|
remove occurences of write circular buffer
|
12 years ago |
Georg Hopp
|
f9ef11ad76
|
fix cleanup of NULL asset_pool
|
12 years ago |
Georg Hopp
|
0e1ec66463
|
this is a huge one...removed cbuf for writing again.... This is not needed any more because I use memory mapped io for these. Additionally sanitised write error handling somewhat...anyway, under huge load I still observer unexpected connection closes. But maybe this is related to interrupt while reading...(reading is not handled very well right now)
|
12 years ago |
Georg Hopp
|
aabcebc848
|
documented another bug
|
12 years ago |
Georg Hopp
|
957fdaadc3
|
added some thoughts about socket states while reading and writing. This is not handled very well right now in my code which result in connections to be closed to early.
|
12 years ago |
Georg Hopp
|
3289d758c9
|
now asset is by itself hashable...and the leaking issue seems to be fixed.
|
12 years ago |
Georg Hopp
|
d235aaef32
|
try to use memory mapped io for asset access, but this one leaks like a rotten barge
|
12 years ago |
Georg Hopp
|
acf4516b12
|
remove message type (PIPED|BUFFERD) because when I use mmap for file io I will always have a memory address, so its kind of buffered.
|
12 years ago |
Georg Hopp
|
d6cd2bbae9
|
added asset class and move mimetype handling in separate helper. Tested this with mmapfiletest2.c
|
12 years ago |
Georg Hopp
|
157b108220
|
added thought about memory mapped asset handling, as well as a small mmap file test program.
|
12 years ago |
Georg Hopp
|
e2763fea94
|
ent
|
12 years ago |
Georg Hopp
|
5d2b27de1c
|
remove specialized asset loadings and use generic one.
|
12 years ago |
Georg Hopp
|
f8fd49938d
|
now allocate only a multiple of pagesize
|
12 years ago |
Georg Hopp
|
21abd36396
|
now sending non html data from one of the other folders also works
|
12 years ago |
Georg Hopp
|
623a062df7
|
add suppport for file extension based mime type detection.
|
12 years ago |
Georg Hopp
|
0fdbbfe3c9
|
add a file with file extension to mime-type mappings
|
12 years ago |
Georg Hopp
|
5c32329105
|
now every file accessible under assets/html will be delivered.
|
12 years ago |
Georg Hopp
|
157f48031c
|
now valgrind shows no more violations...but cleanup does not work correcly. The memory usage depends now on the amount of paralell connections...ab show approximately 10% to 20% performance improvement / and the code is far from optimal.
|
12 years ago |
Georg Hopp
|
55675eb50a
|
tree based memory management does not segfault anymore, but reusage does not seem to work, as well as free
|
12 years ago |
Georg Hopp
|
06266ef541
|
update todo and make my rbtree implementation use externally allocated elements.
|
12 years ago |
Georg Hopp
|
ef6ccfbcbe
|
rbtree insert and delete now as one function and working as expected...still has to be checked on sideeffects.
|
12 years ago |
Georg Hopp
|
52755ca9e9
|
realize that delete does not work correct.
|
12 years ago |
Georg Hopp
|
a543ed8538
|
all insert cases merged in one insertElement function.
|
12 years ago |
Georg Hopp
|
5ea16b6227
|
now the memory is freed outside the tree delete function....
|
12 years ago |
Georg Hopp
|
c3498917bc
|
now it seems that rb trees are working now...stiff a lot of optimization work to be done, as this is mostly one 2 one the code from wikipedia, with some modifiations to work with NULL leaf nodes.
|
12 years ago |
Georg Hopp
|
f54c40e264
|
inserting in red black tree now works as in my example.
|
12 years ago |
Georg Hopp
|
9263007b34
|
change the way traversed elements are shown and add some comments
|
12 years ago |
Georg Hopp
|
fafc5af2ab
|
cope binarytree to play with an rbtree implementation
|
12 years ago |
Georg Hopp
|
ac93db101b
|
fix traversal
|
12 years ago |
Georg Hopp
|
1f40d1bc4b
|
alternative approach on delete of single child nodes. This one really exchanges the nodes, thus preventing large copy on big data that might be in the tree...anyway, for small data i think the other approach is faster.
|
12 years ago |
Georg Hopp
|
e5fa68bf02
|
now use the parent in element in delete
|
12 years ago |
Georg Hopp
|
847b275c86
|
fix insert and make another in-order traverse for checking
|
12 years ago |
Georg Hopp
|
84451e7de3
|
remove wrong comment
|
12 years ago |
Georg Hopp
|
74a60c72c1
|
add parent in element and implement an iterative in-order traversal with it.
|
12 years ago |
Georg Hopp
|
99508f7016
|
further improvments on the rb examples
|
12 years ago |
Georg Hopp
|
868018cd65
|
more stuff on rbdelete
|
12 years ago |