• Sign in

discontinued / server · Commits

Dogs2 white

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Snippets
  • Network
  • Commits 169
  • Network
  • Compare
  • Branches 1
  • Tags 0
  • server
19 Mar, 2016
40 commits
  • change worker to a generic one, some cleanups in server
    4f95d8ce
    Georg Hopp authored
    2016-03-19 19:05:01 +0100  
    Browse Files »
  • and also the accotding header
    c26071a1
    Georg Hopp authored
    2016-03-19 19:05:01 +0100  
    Browse Files »
  • moved httpResponseWriter to httpWriter
    5b2ee457
    Georg Hopp authored
    2016-03-19 19:05:01 +0100  
    Browse Files »
  • fix another small typo
    b7e53487
    Georg Hopp authored
    2016-03-19 19:05:01 +0100  
    Browse Files »
  • fix bug in call to httpParserHeader
    fc3c4ecb
    Georg Hopp authored
    2016-03-19 19:05:01 +0100  
    Browse Files »
  • moved request parser to generic parser. This is now able to create either a requ… ...
    ee604020
    …est or a response message dependent on the initial message line (version first or last). TODO change constructor of response to use a len parameter for the reason
    Georg Hopp authored
    2016-03-19 19:05:01 +0100  
    Browse Files »
  • get rid of some function calls when selection interfaces
    95c0d009
    Georg Hopp authored
    2016-03-19 19:02:50 +0100  
    Browse Files »
  • changed callocs of memory not needed to be initialized to malloc
    6591c0a6
    Georg Hopp authored
    2016-03-19 19:01:27 +0100  
    Browse Files »
  • more ignores of generated files
    68978882
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • saved another loop as i calculate the header string size when it is created.
    0b72a3b1
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • update changelog
    f31b6190
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • add cookie header again
    12953212
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • optmize header search
    e4975a92
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • changed all string operation within header handling with fixed length mem operat… ...
    9f801ba4
    …ions, preventing multiple iterations over these strings. In theory this should improve performance in reality it seems that it is worse...CHECK WHY
    Georg Hopp authored
    2016-03-19 19:00:03 +0100  
    Browse Files »
  • fix initialization of search value
    ac6873fe
    Georg Hopp authored
    2016-03-19 18:58:32 +0100  
    Browse Files »
  • ed
    b3413f40
    Georg Hopp authored
    2016-03-19 18:58:32 +0100  
    Browse Files »
  • structural changes for worker/process. @TODO actually i have no idea why this happens.
    87b0d50d
    Georg Hopp authored
    2016-03-19 18:58:32 +0100  
    Browse Files »
  • fix memory problems occured with latest changes
    dfcbc494
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • fixed bug in keep-alive check arised by implementation if #10
    fc4fd8f6
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • add forgotten jquery assets
    2e46b5c2
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • closes #10: values for header ids are now stored in a char ** making multiple va… ...
    59ccbf02
    …lues for one id possible. Additionally added a jquery action that delivers the jquery java script and use it on the me action
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Directory »
  • now when a constructor returns -1 the new call will in turn call the destructor … ...
    424297cd
    …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.
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • now a child is spawned and writes random values in a shared memory segment. Thes… ...
    01ae8736
    …e values will be shown in the me action
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • some code cleanups...no changes in the logic
    7f688412
    Georg Hopp authored
    2016-03-19 16:24:03 +0100  
    Browse Files »
  • move sdbm implementation in one file.
    8298740d
    Georg Hopp authored
    2016-03-19 16:21:39 +0100  
    Browse Files »
  • changed /**/ single line comments to //
    063189e6
    Georg Hopp authored
    2016-03-19 16:21:39 +0100  
    Browse Files »
  • start documenting this whole stuff...well at least add a copyright information in each file
    b38d4022
    Georg Hopp authored
    2016-03-19 16:21:39 +0100  
    Browse Files »
  • first very crude, not complete, experimental 304 test implementation
    7466e592
    Georg Hopp authored
    2016-03-19 16:19:44 +0100  
    Browse Files »
  • disconnect on invalid request line
    abd69d0a
    Georg Hopp authored
    2016-03-19 16:18:44 +0100  
    Browse Files »
  • now incomplete requests should no longer block the complete server. Tested with … ...
    dfdfd20d
    …\'echo -en "GET / HTTP\r\nConn" | nc -w 600 localhost 11212\' and then doing requests from my browser. @TODO: cleanup those stuff, check if a not correctly response reading would block the server.
    Georg Hopp authored
    2016-03-19 16:17:24 +0100  
    Browse Files »
  • increase writebuffer size a lot.
    eae798e5
    Georg Hopp authored
    2016-03-19 16:17:24 +0100  
    Browse Files »
  • fixed the non keep-alive performance issue as well as i lower memory usage by us… ...
    dbb70423
    …ing a single read and write circular buffer for every connection. @TODO: i noticed a server hang while getting large data (my image) with non keep-alive connections. Additionally an incomplete keep-alive request might stop the server now as the lock on the read buffer will not be released.
    Georg Hopp authored
    2016-03-19 16:17:24 +0100  
    Browse Files »
  • another try with the shmen trick...this time use MAP_ANONYMOUS ... as GNU extension.
    31b7d755
    Georg Hopp authored
    2016-03-19 16:16:22 +0100  
    Browse Files »
  • added missing header file to repo
    5c3928d4
    Georg Hopp authored
    2016-03-19 16:16:22 +0100  
    Browse Files »
  • another try with a shared memory based ringbuffer...this performs well for keep-… ...
    f2dbad19
    …alive sessions but is much slower without. actually i am not sure why but most likely the shared memory setup is quite expensive. @TODO: make a profiling.
    Georg Hopp authored
    2016-03-19 16:16:22 +0100  
    Browse Files »
  • fix inf loop. @TODO: This whole handling has to be cleaned.
    45b4b354
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • this change hopefully makes the shm trick work on amd64
    6cd673b4
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • lots of changes but primarily change the request parser to use a ringbuffer. The… ...
    e8a21ace
    … ringbuffer is implemented using the shared memory trick.
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • some more cleanups in the server code. Removing not needed header includes
    5c1c6a80
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »
  • now the separated http worker works. Changed some size_t to ssize_t as i use -1 … ...
    6550e381
    …and -2 es error indicator in my server and fixed caculation of remainig buffer size in reader
    Georg Hopp authored
    2016-03-19 16:06:00 +0100  
    Browse Files »