Re: Bug in synchronized() ?
rumi <rumi_smieci-h7QdYz1kt/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Bryan Armstrong wrote: > > Rumi, > > The synchronized problem turned out to be that the content size header > was calculated and sent outside the synchronized block. So, if the file > was written to after the content size was sent, but before the sync > block was entered and the data sent, you would have a mismatch. The > HTTP client would close the connection as soon as it received what it > thought was all the data. > > This will be fixed in the next full release. However, the source to > HTTPWorker.java is available in src/ModulesSrc.jar and can be modified > and added to bin/modules.jar for a quick fix. > > -Bryan > Hello Bryan, Your patch doesn't work but it wasn't difficult to move synchronized block by hand. Thank you very much for your help. It works great of course! One question still is unsolved: how to serve static files (for example unchangeable graphical files) without synchronization? Maybe serve files acceleration isn't worth of trouble - and it may be good answer :). Thank you again! brgds rumi _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini