Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lichtjiang
  • Order by date
  1. lichtjiang

    How to terminate a socket server gracefully?

    Thanks a lot! Several doubts. - in each client handler, how it is notified of a SIGTERM signal? I guess there should be only one instance of signal handler running and it is as what you coded in above. But how signal handler pass the signal to each running processes and threads in real-time...
  2. lichtjiang

    How to write a timer to monitor a server?

    I have a program that uses socket in this way: Client A has a socket connection to Server B. A sends some data to B. B processes data and return results to A. However, sometimes, B might take too long to process data and in such a case, for efficiency consideration, A would expect B to simply...
  3. lichtjiang

    How to terminate a socket server gracefully?

    I have a server using unix domain socket. It works in a standard way: listening for requests and accepting each of them by running a separater thread for it: while(true){ int clientsocket; clientsocket=accept(serversocket, NULL, NULL); ClientHandler * ch = new...
  4. lichtjiang

    Java socket server termination and memory release?

    I have a server written in sun/j2se. It uses unix domain socket in a standard way. It listens for connection requests in background all time. After accepting a request, it creates a object of taking care of some job, passes it to an object of Thread, and starts the Thread object: while(true){...
  5. lichtjiang

    fill color in an outline state map?

    Hi, Feherke, you mentioned no need to keep temp files. But after a new map filled with colors is created from a blank map on the server side, how to send it with a web page back to client browsers? I think I can put such a map or some picture object as a file somewhere on the server (even...
  6. lichtjiang

    How to manage temp files created by CGIs?

    Usually, a CGI would create many temp files. For example, it may dynamically create many maps, which do not exist on disks. So, after a web browser session expires, some of these files will be no use any more. But some (e.g., a map for recent climate) may serve multiple requests at different...
  7. lichtjiang

    fill color in an outline state map?

    I want to display a outline state map in web browser. Each state is going to be filled out with a color, which indicates some property of the state, such as temperature or population, etc. So, the map varies in color from time to time with changing property values. I wanted to use javascript to...
  8. lichtjiang

    fill color in an outline state map?

    Thanks, Feherke. Could you please tutor me some hints about how to do in my case (fill color in a map in .gif or other formats) by using GD library?
  9. lichtjiang

    fill color in an outline state map?

    Because each state may be in different color from one time to another. In other words, color is used as indicator of some property, for example, temperature. And I do not want to create this map on server side in order to avoid managing temp files.
  10. lichtjiang

    fill color in an outline state map?

    I want to write a javascript to display a outline state map such that different states are filled with different color in a web browser such as IE and FireFox. What I am thinking is as this: 1st, display blank outline state map as a map (.gif?). Blank outline state map is one that has contour...
  11. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    Yes. In all cases that either message was reported, all arguments (scalar, array, hash and their refs) passed to thread "B::c" have been initialized. In "B::c", it also doesn't matter if those arguments appear as lef-side or right-side (the semaphore and queue definitely change their content and...
  12. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    Forgot to mention, "Attempt to free unreferenced scalar" happened for each thread called in the way shown above.
  13. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    Suppose we have "A.pl" and "B.pm" as follows. _A.pl_ ... my $dummy; threads->create("B::c", ($dummy)); ... _B.pm_ ... sub c{...} ... "Scalars leaked:" occurs for each ref or a hash (replace $dummy with %dummy in above script) that is passed as argument to "B::c". "Attempt to free...
  14. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    Thanks. Mike. That's what I'm thinking to isolate the problem code and find out what is wrong. But just working on other things and didn't find a time for this. I will do this and post whatever I will find later ...
  15. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    forgot to mention that I have 4 threads in total. 3 of them used those queues and semaphores. and there were 3 such message reports for them. no report for the remaining one, which just passed queues and semaphores as arguments. so, more like some problem w/ my code ...
  16. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    Thanks. mine is "v5.8.8 built for i686-linux-thread-multi" on gentoo linux. there is known bug similar to this? not very sure I will have to check my code when I have time later ...
  17. lichtjiang

    DataOutputStream locked?

    Forgot to mention, client was not blocked by any other sources . It jusst waited for reading data from socket...
  18. lichtjiang

    DataOutputStream locked?

    It seems to hang forever at writing data to a DataOutputStream associated with a socket connection to a client. "locked at ...". So, what could cause such block? "Unix Domain Socket" was used. Each write was between 10KB ~ 1MB. Is this because of some buffer problem with socket or something...
  19. lichtjiang

    Program frozen?

    A java server seemss to pause for a long time. How to find what it is doing and where it is? Thanks. The following is exceprt of top -p output: VIRT RES SHR S %CPU %MEM 638m 339m 11m S 102 9.0 And the following is extracted from stack trace by sending "kill -QUIT" to the program: "Finalizer"...
  20. lichtjiang

    what is "Attempt to free unreferenced scalar"?

    I got the following message when one of my perl program exits (it runs multiple threads simultaneously, it has several variable of typess of Thread::Queue and Thread::Semaphore): Attempt to free unreferenced scalar: SV 0x84f0c00, Perl interpreter: 0x8362c78 during global destruction. What does...

Part and Inventory Search

Back
Top