Re: Bug in synchronized() ?
Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
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 -- -- Bryan Armstrong bryan.armstrong-6tN4nzCoH/[email protected] _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini