Commit Graph

44 Commits

Author SHA1 Message Date
Jean-Philippe Andre db6cba1429 evas/cserve2: avoid useless SETOPT messages.
Most of the time, the SETOPT message is sent only
to carry 0 data. Let's add a flag to the OPEN message to
avoid useless socket calls.
Server-side: implement with message faking.
Also, fix image ID logic on client side:
 - alloc data entry asap,
 - assign image_id during call to OPEN

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-07-02 16:58:10 +09:00
Jean-Philippe Andre f9a7820e02 evas/cserve2: Simplify debug logs (server side).
Remove newlines.

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-07-02 16:58:10 +09:00
Jean-Philippe Andre 29bf164c75 evas/cserve2: pass loader data during open.
Note: this path seems never to be used.
Loader options are set by the file loader or after open.

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-07-02 16:58:10 +09:00
Jean-Philippe Andre 6a2a0187ff evas/cserve2: write() can return other errors.
In case of error, return from the function and don't decrement
the send variable.

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-07-02 16:58:10 +09:00
Jean-Philippe Andre f7c6545170 evas/cserve2: minor fixes (error paths).
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-07-02 16:58:10 +09:00
Jean-Philippe Andre d712a13a7a evas/cserve2: use null-terminated strings everywhere.
Some hashtable lookups failed because the keys were added
either with eina_stringshare_add() or e_s_add_lenth() but
looked for with e_s_add_length() only.

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-07-02 16:58:09 +09:00
Chris Michael 7e222b949c Fix klockwork memleak: If we allocate a colormap above, then we need
to free it on error.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-06-28 13:57:56 +01:00
Sebastian Dransfeld 068f1ddc62 efl: formatting 2013-06-20 13:08:36 +02:00
Sebastian Dransfeld 51023d2d4f evas: Keep sane name for public header
Evas_Common.h should be used for the public header, and rather rename
evas_common.h internal header to another name.

Sa:
Evas_Common_Header.h -> Evas_Common.h
evas_common.h -> evas_common_private.h

Shouldn't have both Evas_Common.h and evas_common.h because of case
insensitive filesystems.
2013-06-20 12:53:29 +02:00
Jean-Philippe Andre 9929ee9aec cserve2: add more error debug for font loading 2013-06-20 17:42:07 +09:00
Jean-Philippe Andre 16c8ab3b18 evas/cserve2: remove garbage shm files during server init
If server crashes or is forcefully killed, it will not
properly cleanup its shm files. So, some memory will be leaked pretty
badly.
2013-06-14 17:09:03 +09:00
Jean-Philippe Andre 42309042c6 evas/cserve2: fix crash when shutting down cserve2
If a slave is still alive during shutdown, then it will be killed
and the dead callback should be called. This would then trigger
a request failed callback on invalid data.
But there's no point in calling the dead_cb since we're shutting
down already.
2013-06-14 16:38:18 +09:00
Jean-Philippe Andre 681c8cda4c evas/cserve2: (shutdown) fix double free issue
glibc double free happens when shutting down cserve, while
requests are being processed. this is because the entry is
being deleted from the hash but the cancel request fails
(so it should be deleted again from the hash)

Another patch going to fix the double free.
2013-06-14 16:38:18 +09:00
Jean-Philippe Andre a3b3b5bd8e evas/cserve2: Handle SIGINT properly 2013-06-14 16:38:18 +09:00
Jean-Philippe Andre 338218109b evas/cserve2: catch more signals and exit nicely
Also, ignore USR1 and USR2.
2013-06-14 16:38:18 +09:00
Jean-Philippe Andre 07ef0fdd93 evas/cserve2: Add UID to shm file path
+ Improve debug for corner case (never happened)
2013-06-14 16:38:18 +09:00
Eduardo Lima (Etrunko) d3292a7ae9 Split .gitignore into multiple files
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-11 18:18:50 -03:00
Jean-Philippe Andre 54e5d651e4 evas/cserve2: fix jpeg loader crash (invalid free)
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-06-04 20:21:17 +09:00
Jean-Philippe Andre 5d7689d627 evas/cserve2: fix crash in server side when sending SIGINT.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-06-04 20:21:16 +09:00
Jean-Philippe Andre 6531423fd7 evas/cserve2: fix SIGFPE in expedite test case.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-06-04 20:21:16 +09:00
Jean-Philippe Andre 452a301bfa evas/cserve2: fix fonts flags.
aka: fix italic fonts or T25 .

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-06-04 15:04:19 +09:00
Igor Murzov 32f27fee7e Evas: Fix double fclose() in WebP loader 2013-04-16 12:07:36 +04:00
Tom Hacohen 71e95fa386 Evas cserve2: Remove useless var when calculating size of sun_path.
I have no idea how I missed these 2.
2013-03-21 14:15:10 +00:00
Tom Hacohen ecc0972468 Evas cserve2: Remove useless var when calculating size of sun_path. 2013-03-21 13:15:47 +00:00
Henrique Dante de Almeida 2656d7097e evas: Fix PSD image loading 2013-02-26 10:17:28 -03:00
Henrique Dante de Almeida f5d4ae70bd evas: Fix buffer overflows on environment variables 2013-02-26 10:17:28 -03:00
Christopher Michael 7f7f7f7c1f Fix possible memory leak.
Dynamic memory stored in 'ptr2' allocated through function 'malloc' at
line 653 can be lost at line 1022. Also there is one similar error on
line 1029.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>
2013-02-19 13:14:31 +00:00
Carsten Haitzler 5fa5f1430b small change to something never used/tested much ... cserve2 - FAIL if
an existing cserve 2 client is there.



SVN revision: 83866
2013-02-13 11:32:30 +00:00
Gustavo Sverzut Barbieri df701d8ca2 some clang warning cleanups i forgot to commit
SVN revision: 83024
2013-01-21 00:22:35 +00:00
Gustavo Sverzut Barbieri c6358ff322 fix evas_cserve2 utils linkage and includes.
they are basic eina apps, not evas (use EINA_CFLAGS), they just use
evas_cs2.h for types and enums.

they also must link with eina.



SVN revision: 82995
2013-01-18 19:30:44 +00:00
Lucas De Marchi 06ff74834f efl: remove checks for socket.h, net/*, arpa/*
SVN revision: 82585
2013-01-10 20:26:02 +00:00
Lucas De Marchi db395ef7eb efl: Remove check for unistd.h
* unistd.h: is very useful, very old and very standard.



SVN revision: 82577
2013-01-10 20:25:26 +00:00
Lucas De Marchi 56f62b1f5d efl/evas: move cserve2 binaries under MODULE_ARCH dir
SVN revision: 82491
2013-01-09 22:32:08 +00:00
Gustavo Sverzut Barbieri 71cf862c95 efl/evas_cserve2: use eina_prefix
SVN revision: 82220
2013-01-04 18:00:12 +00:00
Gustavo Sverzut Barbieri 16a9372e35 efl/evas_cserve2: don't use libexec
many distros deprecate libexec and it's better to keep our stuff
together inside /usr/lib/evas.

cserve2 binaries now lives in /usr/lib/evas/cserve2/bin



SVN revision: 81897
2012-12-30 11:42:04 +00:00
Paulo Alcantara fb97c82882 efl/cserve2: Fix some bugs regarding fonts
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>


SVN revision: 81582
2012-12-21 21:11:23 +00:00
Paulo Alcantara da061849b0 efl/cserve2: Fix invalid iteration over client references
The _request_failed() function is called by error responses from slaves,
and iterating over references of a entry and removing each of them must
be done with EINA_LIST_FOREACH_SAFE(), since _entry_free_cb() calls
_entry_reference_del() which then removes the reference that is used in
the next iteration in for-loop from _request_failed().

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>


SVN revision: 81580
2012-12-21 21:09:45 +00:00
Leandro Pereira f96a5aac5c evas: Get rid of RGBA_Image ref member
(It's not by anything in the code.)



SVN revision: 81182
2012-12-17 21:26:15 +00:00
Paulo Alcantara 633e29c5a5 evas/cserve2: Re-enable speculative load
I've tested it and I can confirm that it's working fine with the new
scalecache support on Cserve2. So, let's use it again.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 80177
2012-12-04 15:40:00 +00:00
Paulo Alcantara f8f79f8599 evas/cserve2: Add scalecache support
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79754
2012-11-27 18:23:25 +00:00
Carsten Haitzler 515d08491d add comments in cserve2 bin webp loader too.
SVN revision: 79316
2012-11-15 05:23:40 +00:00
Carsten Haitzler 66a43d2a7a more warn-- in efl tree.
SVN revision: 79314
2012-11-15 05:19:14 +00:00
ChunEon Park 0d8488a478 evas/jpeg, cserve2 - removed unused
SVN revision: 79094
2012-11-10 11:35:42 +00:00
Vincent Torri c15e9c6575 merge: and now Evas
I've tested make -j 3 install and it works nicely

I've tested expedite with software and opengl xlib,
and it works. Not tested other engines, so please
report any problems (engines or other) on the ML.

TODO: examples and tests, I'll add them later

ISSUE: Eina_Unicode size check. It indirectly depends on
       eina_config.h, which is created at the end of the
       configure script. So its size is always 0. I don't
       know how that size is used, so I can't do a lot,
       for now.


SVN revision: 78895
2012-11-04 11:51:42 +00:00